@intelact/gnosa 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/auth/user.model.d.ts +9 -0
- package/lib/auth/user.model.js +38 -0
- package/lib/auth/user.model.js.map +1 -0
- package/lib/book/book.dto.d.ts +3 -10
- package/lib/book/book.dto.js +6 -21
- package/lib/book/book.dto.js.map +1 -1
- package/lib/book/book.model.d.ts +5 -3
- package/lib/book/book.model.js +5 -7
- package/lib/book/book.model.js.map +1 -1
- package/lib/discover/discover.dto.d.ts +25 -1
- package/lib/discover/discover.dto.js +60 -3
- package/lib/discover/discover.dto.js.map +1 -1
- package/lib/discover/discover.model.d.ts +14 -3
- package/lib/discover/discover.model.js +34 -3
- package/lib/discover/discover.model.js.map +1 -1
- package/lib/event/event.dto.d.ts +0 -9
- package/lib/event/event.dto.js +1 -18
- package/lib/event/event.dto.js.map +1 -1
- package/lib/event/event.model.d.ts +10 -4
- package/lib/event/event.model.js +26 -8
- package/lib/event/event.model.js.map +1 -1
- package/lib/foundation/history.dto.d.ts +7 -2
- package/lib/foundation/history.dto.js +28 -2
- package/lib/foundation/history.dto.js.map +1 -1
- package/lib/foundation/history.model.d.ts +16 -5
- package/lib/foundation/history.model.js +48 -5
- package/lib/foundation/history.model.js.map +1 -1
- package/lib/foundation/partner.model.d.ts +5 -0
- package/lib/foundation/partner.model.js +13 -0
- package/lib/foundation/partner.model.js.map +1 -1
- package/lib/foundation/person.model.d.ts +5 -0
- package/lib/foundation/person.model.js +13 -0
- package/lib/foundation/person.model.js.map +1 -1
- package/lib/general/language.enum.d.ts +5 -2
- package/lib/general/language.enum.js +4 -1
- package/lib/general/language.enum.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/magazine/magazine.dto.d.ts +4 -13
- package/lib/magazine/magazine.dto.js +6 -25
- package/lib/magazine/magazine.dto.js.map +1 -1
- package/lib/magazine/magazine.model.d.ts +5 -10
- package/lib/magazine/magazine.model.js +5 -18
- package/lib/magazine/magazine.model.js.map +1 -1
- package/lib/order/order.dto.d.ts +3 -8
- package/lib/order/order.dto.js +5 -14
- package/lib/order/order.dto.js.map +1 -1
- package/lib/order/order.enum.d.ts +4 -2
- package/lib/order/order.enum.js +3 -1
- package/lib/order/order.enum.js.map +1 -1
- package/lib/order/order.model.d.ts +12 -24
- package/lib/order/order.model.js +17 -45
- package/lib/order/order.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/transformers.helper.d.ts +6 -0
- package/lib/utils/transformers.helper.js +9 -0
- package/lib/utils/transformers.helper.js.map +1 -1
- package/package.json +1 -1
package/lib/event/event.model.js
CHANGED
|
@@ -33,6 +33,11 @@ class EventSpeaker {
|
|
|
33
33
|
slug;
|
|
34
34
|
name;
|
|
35
35
|
imageUrl;
|
|
36
|
+
/**
|
|
37
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
38
|
+
*/
|
|
39
|
+
imageName;
|
|
40
|
+
imageSize;
|
|
36
41
|
/**
|
|
37
42
|
* The short description in the app language (the public page).
|
|
38
43
|
*/
|
|
@@ -58,6 +63,14 @@ __decorate([
|
|
|
58
63
|
(0, class_transformer_1.Expose)(),
|
|
59
64
|
__metadata("design:type", String)
|
|
60
65
|
], EventSpeaker.prototype, "imageUrl", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], EventSpeaker.prototype, "imageName", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], EventSpeaker.prototype, "imageSize", void 0);
|
|
61
74
|
__decorate([
|
|
62
75
|
(0, class_transformer_1.Expose)(),
|
|
63
76
|
__metadata("design:type", String)
|
|
@@ -117,13 +130,14 @@ class Event {
|
|
|
117
130
|
status;
|
|
118
131
|
imageUrl;
|
|
119
132
|
/**
|
|
120
|
-
*
|
|
133
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
121
134
|
*/
|
|
122
|
-
|
|
135
|
+
imageName;
|
|
136
|
+
imageSize;
|
|
123
137
|
/**
|
|
124
|
-
*
|
|
138
|
+
* In UTC.
|
|
125
139
|
*/
|
|
126
|
-
|
|
140
|
+
startDate;
|
|
127
141
|
/**
|
|
128
142
|
* The languages the event is held in.
|
|
129
143
|
*/
|
|
@@ -163,15 +177,19 @@ __decorate([
|
|
|
163
177
|
(0, class_transformer_1.Expose)(),
|
|
164
178
|
__metadata("design:type", String)
|
|
165
179
|
], Event.prototype, "imageUrl", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, class_transformer_1.Expose)(),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], Event.prototype, "imageName", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, class_transformer_1.Expose)(),
|
|
186
|
+
__metadata("design:type", Number)
|
|
187
|
+
], Event.prototype, "imageSize", void 0);
|
|
166
188
|
__decorate([
|
|
167
189
|
(0, class_transformer_1.Expose)(),
|
|
168
190
|
(0, class_transformer_1.Type)(() => Date),
|
|
169
191
|
__metadata("design:type", Date)
|
|
170
192
|
], Event.prototype, "startDate", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
(0, class_transformer_1.Expose)(),
|
|
173
|
-
__metadata("design:type", String)
|
|
174
|
-
], Event.prototype, "timezone", void 0);
|
|
175
193
|
__decorate([
|
|
176
194
|
(0, class_transformer_1.Expose)(),
|
|
177
195
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.model.js","sourceRoot":"","sources":["../../src/event/event.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,6CAA2C;AAE3C,MAAa,uBAAuB;IAEnC,WAAW,CAAS;IAEpB,YAAY,KAAwC;QACnD,MAAM,CAA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M,GAAE;;uCACQ;AAMjB;IADC,IAAA,0BAAM,GAAE;;wCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;wCACS;AAOlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAMhB;IADC,IAAA,0BAAM,GAAE;;wCACa;AAMtB;IADC,IAAA,0BAAM,GAAE;;oCACM;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACa;AAGtB;IADC,IAAA,0BAAM,GAAE;;8CACgB;AAGzB;IADC,IAAA,0BAAM,GAAE;;+CACiB;AAG1B;IADC,IAAA,0BAAM,GAAE;;0CACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;uCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;6CACe;AAOxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC;;uCACC;AAM1B;IADC,IAAA,0BAAM,GAAE;;2CACqC"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
export declare class HistoryTranslationDto {
|
|
2
2
|
title: string;
|
|
3
|
+
shortDescription: string;
|
|
4
|
+
/**
|
|
5
|
+
* The full description.
|
|
6
|
+
*/
|
|
3
7
|
description: string;
|
|
8
|
+
seoTitle: string;
|
|
9
|
+
seoDescription: string;
|
|
4
10
|
constructor(props?: Partial<HistoryTranslationDto>);
|
|
5
11
|
}
|
|
6
12
|
/**
|
|
7
|
-
* A history entry is never a draft, so
|
|
8
|
-
* languages.
|
|
13
|
+
* A history entry is never a draft, so every localized field is required in all three languages.
|
|
9
14
|
*/
|
|
10
15
|
export declare class HistoryTranslationsDto {
|
|
11
16
|
sq: HistoryTranslationDto;
|
|
@@ -22,7 +22,13 @@ const dateMessage = (args) => args.value === undefined || args.value === null ||
|
|
|
22
22
|
: 'gnosa.validation.date.invalid';
|
|
23
23
|
class HistoryTranslationDto {
|
|
24
24
|
title;
|
|
25
|
+
shortDescription;
|
|
26
|
+
/**
|
|
27
|
+
* The full description.
|
|
28
|
+
*/
|
|
25
29
|
description;
|
|
30
|
+
seoTitle;
|
|
31
|
+
seoDescription;
|
|
26
32
|
constructor(props) {
|
|
27
33
|
Object.assign(this, props);
|
|
28
34
|
}
|
|
@@ -35,6 +41,13 @@ __decorate([
|
|
|
35
41
|
(0, common_1.Trim)(),
|
|
36
42
|
__metadata("design:type", String)
|
|
37
43
|
], HistoryTranslationDto.prototype, "title", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.shortDescription.required' }),
|
|
46
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.shortDescription.required' }),
|
|
47
|
+
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.shortDescription.invalid' }),
|
|
48
|
+
(0, common_1.Trim)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], HistoryTranslationDto.prototype, "shortDescription", void 0);
|
|
38
51
|
__decorate([
|
|
39
52
|
(0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.description.required' }),
|
|
40
53
|
(0, class_validator_1.IsString)({ message: 'gnosa.validation.description.required' }),
|
|
@@ -42,9 +55,22 @@ __decorate([
|
|
|
42
55
|
(0, common_1.Trim)(),
|
|
43
56
|
__metadata("design:type", String)
|
|
44
57
|
], HistoryTranslationDto.prototype, "description", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.seoTitle.required' }),
|
|
60
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.seoTitle.required' }),
|
|
61
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.seoTitle.invalid' }),
|
|
62
|
+
(0, common_1.Trim)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], HistoryTranslationDto.prototype, "seoTitle", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.seoDescription.required' }),
|
|
67
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.seoDescription.required' }),
|
|
68
|
+
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.seoDescription.invalid' }),
|
|
69
|
+
(0, common_1.Trim)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], HistoryTranslationDto.prototype, "seoDescription", void 0);
|
|
45
72
|
/**
|
|
46
|
-
* A history entry is never a draft, so
|
|
47
|
-
* languages.
|
|
73
|
+
* A history entry is never a draft, so every localized field is required in all three languages.
|
|
48
74
|
*/
|
|
49
75
|
class HistoryTranslationsDto {
|
|
50
76
|
sq;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.dto.js","sourceRoot":"","sources":["../../src/foundation/history.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0H;AAC1H,6CAAwC;AACxC,yDAAyC;AAEzC,sEAAyD;AAEzD;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,IAAyB,EAAE,EAAE,CACjD,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE;IACnE,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,+BAA+B,CAAC;AAEpC,MAAa,qBAAqB;IAKjC,KAAK,CAAS;IAMd,WAAW,CAAS;
|
|
1
|
+
{"version":3,"file":"history.dto.js","sourceRoot":"","sources":["../../src/foundation/history.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0H;AAC1H,6CAAwC;AACxC,yDAAyC;AAEzC,sEAAyD;AAEzD;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,IAAyB,EAAE,EAAE,CACjD,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,KAA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IAKX,YAAY,CAAyB;IAErC,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,gCAgBC;AAVA;IAFC,IAAA,wBAAM,EAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAChC,IAAA,+BAAS,GAAE;8BACN,IAAI;wCAAC;AAKX;IAHC,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAChE,IAAA,gCAAc,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IACrE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACrB,sBAAsB;gDAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Translations } from '../general/translations';
|
|
2
2
|
export declare class HistoryTranslation {
|
|
3
3
|
title: string;
|
|
4
|
+
shortDescription: string;
|
|
5
|
+
/**
|
|
6
|
+
* The full description.
|
|
7
|
+
*/
|
|
4
8
|
description: string;
|
|
9
|
+
seoTitle: string;
|
|
10
|
+
seoDescription: string;
|
|
5
11
|
constructor(props?: Partial<HistoryTranslation>);
|
|
6
12
|
}
|
|
7
13
|
/**
|
|
@@ -10,20 +16,25 @@ export declare class HistoryTranslation {
|
|
|
10
16
|
export declare class History {
|
|
11
17
|
slug: string;
|
|
12
18
|
imageUrl: string;
|
|
19
|
+
/**
|
|
20
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
21
|
+
*/
|
|
22
|
+
imageName: string;
|
|
23
|
+
imageSize: number;
|
|
13
24
|
/**
|
|
14
25
|
* In UTC.
|
|
15
26
|
*/
|
|
16
27
|
date: Date;
|
|
17
28
|
/**
|
|
18
|
-
* The
|
|
29
|
+
* The localized fields in the app language (lists and the public page).
|
|
19
30
|
*/
|
|
20
31
|
title?: string;
|
|
21
|
-
|
|
22
|
-
* The description in the app language (lists and the public page).
|
|
23
|
-
*/
|
|
32
|
+
shortDescription?: string;
|
|
24
33
|
description?: string;
|
|
34
|
+
seoTitle?: string;
|
|
35
|
+
seoDescription?: string;
|
|
25
36
|
/**
|
|
26
|
-
* The
|
|
37
|
+
* The localized fields in every language (the editor).
|
|
27
38
|
*/
|
|
28
39
|
translations?: Translations<HistoryTranslation>;
|
|
29
40
|
constructor(props?: Partial<History>);
|
|
@@ -13,7 +13,13 @@ exports.History = exports.HistoryTranslation = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
class HistoryTranslation {
|
|
15
15
|
title;
|
|
16
|
+
shortDescription;
|
|
17
|
+
/**
|
|
18
|
+
* The full description.
|
|
19
|
+
*/
|
|
16
20
|
description;
|
|
21
|
+
seoTitle;
|
|
22
|
+
seoDescription;
|
|
17
23
|
constructor(props) {
|
|
18
24
|
Object.assign(this, props);
|
|
19
25
|
}
|
|
@@ -23,30 +29,47 @@ __decorate([
|
|
|
23
29
|
(0, class_transformer_1.Expose)(),
|
|
24
30
|
__metadata("design:type", String)
|
|
25
31
|
], HistoryTranslation.prototype, "title", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], HistoryTranslation.prototype, "shortDescription", void 0);
|
|
26
36
|
__decorate([
|
|
27
37
|
(0, class_transformer_1.Expose)(),
|
|
28
38
|
__metadata("design:type", String)
|
|
29
39
|
], HistoryTranslation.prototype, "description", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], HistoryTranslation.prototype, "seoTitle", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], HistoryTranslation.prototype, "seoDescription", void 0);
|
|
30
48
|
/**
|
|
31
49
|
* An entry of the foundation's history timeline.
|
|
32
50
|
*/
|
|
33
51
|
class History {
|
|
34
52
|
slug;
|
|
35
53
|
imageUrl;
|
|
54
|
+
/**
|
|
55
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
56
|
+
*/
|
|
57
|
+
imageName;
|
|
58
|
+
imageSize;
|
|
36
59
|
/**
|
|
37
60
|
* In UTC.
|
|
38
61
|
*/
|
|
39
62
|
date;
|
|
40
63
|
/**
|
|
41
|
-
* The
|
|
64
|
+
* The localized fields in the app language (lists and the public page).
|
|
42
65
|
*/
|
|
43
66
|
title;
|
|
44
|
-
|
|
45
|
-
* The description in the app language (lists and the public page).
|
|
46
|
-
*/
|
|
67
|
+
shortDescription;
|
|
47
68
|
description;
|
|
69
|
+
seoTitle;
|
|
70
|
+
seoDescription;
|
|
48
71
|
/**
|
|
49
|
-
* The
|
|
72
|
+
* The localized fields in every language (the editor).
|
|
50
73
|
*/
|
|
51
74
|
translations;
|
|
52
75
|
constructor(props) {
|
|
@@ -62,6 +85,14 @@ __decorate([
|
|
|
62
85
|
(0, class_transformer_1.Expose)(),
|
|
63
86
|
__metadata("design:type", String)
|
|
64
87
|
], History.prototype, "imageUrl", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_transformer_1.Expose)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], History.prototype, "imageName", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], History.prototype, "imageSize", void 0);
|
|
65
96
|
__decorate([
|
|
66
97
|
(0, class_transformer_1.Expose)(),
|
|
67
98
|
(0, class_transformer_1.Type)(() => Date),
|
|
@@ -71,10 +102,22 @@ __decorate([
|
|
|
71
102
|
(0, class_transformer_1.Expose)(),
|
|
72
103
|
__metadata("design:type", String)
|
|
73
104
|
], History.prototype, "title", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], History.prototype, "shortDescription", void 0);
|
|
74
109
|
__decorate([
|
|
75
110
|
(0, class_transformer_1.Expose)(),
|
|
76
111
|
__metadata("design:type", String)
|
|
77
112
|
], History.prototype, "description", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_transformer_1.Expose)(),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], History.prototype, "seoTitle", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_transformer_1.Expose)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], History.prototype, "seoDescription", void 0);
|
|
78
121
|
__decorate([
|
|
79
122
|
(0, class_transformer_1.Expose)(),
|
|
80
123
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.model.js","sourceRoot":"","sources":["../../src/foundation/history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,MAAa,kBAAkB;IAE9B,KAAK,CAAS;IAGd,WAAW,CAAS;
|
|
1
|
+
{"version":3,"file":"history.model.js","sourceRoot":"","sources":["../../src/foundation/history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,MAAa,kBAAkB;IAE9B,KAAK,CAAS;IAGd,gBAAgB,CAAS;IAEzB;;OAEG;IAEH,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAGjB,cAAc,CAAS;IAEvB,YAAY,KAAmC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtBD,gDAsBC;AApBA;IADC,IAAA,0BAAM,GAAE;;iDACK;AAGd;IADC,IAAA,0BAAM,GAAE;;4DACgB;AAMzB;IADC,IAAA,0BAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;oDACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;0DACc;AAOxB;;GAEG;AACH,MAAa,OAAO;IAEnB,IAAI,CAAS;IAGb,QAAQ,CAAS;IAEjB;;OAEG;IAEH,SAAS,CAAS;IAGlB,SAAS,CAAS;IAElB;;OAEG;IAGH,IAAI,CAAO;IAEX;;OAEG;IAEH,KAAK,CAAU;IAGf,gBAAgB,CAAU;IAG1B,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,cAAc,CAAU;IAExB;;OAEG;IAEH,YAAY,CAAoC;IAEhD,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAlDD,0BAkDC;AAhDA;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;yCACQ;AAMjB;IADC,IAAA,0BAAM,GAAE;;0CACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;0CACS;AAOlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;qCAAC;AAMX;IADC,IAAA,0BAAM,GAAE;;sCACM;AAGf;IADC,IAAA,0BAAM,GAAE;;iDACiB;AAG1B;IADC,IAAA,0BAAM,GAAE;;4CACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;+CACe;AAMxB;IADC,IAAA,0BAAM,GAAE;;6CACuC"}
|
|
@@ -9,6 +9,11 @@ export declare class PartnerTranslation {
|
|
|
9
9
|
export declare class Partner {
|
|
10
10
|
slug: string;
|
|
11
11
|
logoUrl: string;
|
|
12
|
+
/**
|
|
13
|
+
* The logo file name as it was uploaded, and its size in bytes.
|
|
14
|
+
*/
|
|
15
|
+
logoName: string;
|
|
16
|
+
logoSize: number;
|
|
12
17
|
name: string;
|
|
13
18
|
/**
|
|
14
19
|
* The partner's website.
|
|
@@ -28,6 +28,11 @@ __decorate([
|
|
|
28
28
|
class Partner {
|
|
29
29
|
slug;
|
|
30
30
|
logoUrl;
|
|
31
|
+
/**
|
|
32
|
+
* The logo file name as it was uploaded, and its size in bytes.
|
|
33
|
+
*/
|
|
34
|
+
logoName;
|
|
35
|
+
logoSize;
|
|
31
36
|
name;
|
|
32
37
|
/**
|
|
33
38
|
* The partner's website.
|
|
@@ -58,6 +63,14 @@ __decorate([
|
|
|
58
63
|
(0, class_transformer_1.Expose)(),
|
|
59
64
|
__metadata("design:type", String)
|
|
60
65
|
], Partner.prototype, "logoUrl", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Partner.prototype, "logoName", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], Partner.prototype, "logoSize", void 0);
|
|
61
74
|
__decorate([
|
|
62
75
|
(0, class_transformer_1.Expose)(),
|
|
63
76
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner.model.js","sourceRoot":"","sources":["../../src/foundation/partner.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,MAAa,kBAAkB;IAE9B,WAAW,CAAS;IAEpB,YAAY,KAAmC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAPD,gDAOC;AALA;IADC,IAAA,0BAAM,GAAE;;uDACW;AAOrB;;GAEG;AACH,MAAa,OAAO;IAEnB,IAAI,CAAS;IAGb,OAAO,CAAS;
|
|
1
|
+
{"version":3,"file":"partner.model.js","sourceRoot":"","sources":["../../src/foundation/partner.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,MAAa,kBAAkB;IAE9B,WAAW,CAAS;IAEpB,YAAY,KAAmC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAPD,gDAOC;AALA;IADC,IAAA,0BAAM,GAAE;;uDACW;AAOrB;;GAEG;AACH,MAAa,OAAO;IAEnB,IAAI,CAAS;IAGb,OAAO,CAAS;IAEhB;;OAEG;IAEH,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAEb;;OAEG;IAEH,WAAW,CAAS;IAEpB;;OAEG;IAGH,IAAI,CAAS;IAEb;;OAEG;IAEH,WAAW,CAAU;IAErB;;OAEG;IAEH,YAAY,CAAoC;IAEhD,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,0BA+CC;AA7CA;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACO;AAMhB;IADC,IAAA,0BAAM,GAAE;;yCACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;yCACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;qCACI;AAMb;IADC,IAAA,0BAAM,GAAE;;4CACW;AAOpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACN;AAMb;IADC,IAAA,0BAAM,GAAE;;4CACY;AAMrB;IADC,IAAA,0BAAM,GAAE;;6CACuC"}
|
|
@@ -12,6 +12,11 @@ export declare class Person {
|
|
|
12
12
|
name: string;
|
|
13
13
|
group: PersonGroup;
|
|
14
14
|
imageUrl: string;
|
|
15
|
+
/**
|
|
16
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
17
|
+
*/
|
|
18
|
+
imageName: string;
|
|
19
|
+
imageSize: number;
|
|
15
20
|
/**
|
|
16
21
|
* Position within the person's group.
|
|
17
22
|
*/
|
|
@@ -31,6 +31,11 @@ class Person {
|
|
|
31
31
|
name;
|
|
32
32
|
group;
|
|
33
33
|
imageUrl;
|
|
34
|
+
/**
|
|
35
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
36
|
+
*/
|
|
37
|
+
imageName;
|
|
38
|
+
imageSize;
|
|
34
39
|
/**
|
|
35
40
|
* Position within the person's group.
|
|
36
41
|
*/
|
|
@@ -64,6 +69,14 @@ __decorate([
|
|
|
64
69
|
(0, class_transformer_1.Expose)(),
|
|
65
70
|
__metadata("design:type", String)
|
|
66
71
|
], Person.prototype, "imageUrl", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], Person.prototype, "imageName", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], Person.prototype, "imageSize", void 0);
|
|
67
80
|
__decorate([
|
|
68
81
|
(0, class_transformer_1.Expose)(),
|
|
69
82
|
(0, class_transformer_1.Type)(() => Number),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.model.js","sourceRoot":"","sources":["../../src/foundation/person.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAGjD,2DAAkD;AAElD,MAAa,iBAAiB;IAE7B,QAAQ,CAAS;IAEjB,YAAY,KAAkC;QAC7C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAPD,8CAOC;AALA;IADC,IAAA,0BAAM,GAAE;;mDACQ;AAOlB;;GAEG;AACH,MAAa,MAAM;IAElB,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,KAAK,CAAc;IAGnB,QAAQ,CAAS;IAEjB;;OAEG;IAGH,IAAI,CAAS;IAEb;;OAEG;IAEH,QAAQ,CAAU;IAElB;;OAEG;IAEH,YAAY,CAAmC;IAE/C,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;
|
|
1
|
+
{"version":3,"file":"person.model.js","sourceRoot":"","sources":["../../src/foundation/person.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAGjD,2DAAkD;AAElD,MAAa,iBAAiB;IAE7B,QAAQ,CAAS;IAEjB,YAAY,KAAkC;QAC7C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAPD,8CAOC;AALA;IADC,IAAA,0BAAM,GAAE;;mDACQ;AAOlB;;GAEG;AACH,MAAa,MAAM;IAElB,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,KAAK,CAAc;IAGnB,QAAQ,CAAS;IAEjB;;OAEG;IAEH,SAAS,CAAS;IAGlB,SAAS,CAAS;IAElB;;OAEG;IAGH,IAAI,CAAS;IAEb;;OAEG;IAEH,QAAQ,CAAU;IAElB;;OAEG;IAEH,YAAY,CAAmC;IAE/C,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA5CD,wBA4CC;AA1CA;IADC,IAAA,0BAAM,GAAE;;oCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;oCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;qCACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAMjB;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;yCACS;AAOlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACN;AAMb;IADC,IAAA,0BAAM,GAAE;;wCACS;AAMlB;IADC,IAAA,0BAAM,GAAE;;4CACsC"}
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* The languages Gnosa is used in, both the public website and the admin panel. Albanian is the
|
|
3
3
|
* default one: it is used whenever a request names no language or an unknown one, and it is the
|
|
4
4
|
* language the slugs are built from.
|
|
5
|
+
*
|
|
6
|
+
* Declared in the order the apps list the languages everywhere (language tabs, publishing
|
|
7
|
+
* checklists): Albanian, Macedonian, English.
|
|
5
8
|
*/
|
|
6
9
|
export declare enum Language {
|
|
7
|
-
English = "en",
|
|
8
10
|
Albanian = "sq",
|
|
9
|
-
Macedonian = "mk"
|
|
11
|
+
Macedonian = "mk",
|
|
12
|
+
English = "en"
|
|
10
13
|
}
|
|
@@ -5,11 +5,14 @@ exports.Language = void 0;
|
|
|
5
5
|
* The languages Gnosa is used in, both the public website and the admin panel. Albanian is the
|
|
6
6
|
* default one: it is used whenever a request names no language or an unknown one, and it is the
|
|
7
7
|
* language the slugs are built from.
|
|
8
|
+
*
|
|
9
|
+
* Declared in the order the apps list the languages everywhere (language tabs, publishing
|
|
10
|
+
* checklists): Albanian, Macedonian, English.
|
|
8
11
|
*/
|
|
9
12
|
var Language;
|
|
10
13
|
(function (Language) {
|
|
11
|
-
Language["English"] = "en";
|
|
12
14
|
Language["Albanian"] = "sq";
|
|
13
15
|
Language["Macedonian"] = "mk";
|
|
16
|
+
Language["English"] = "en";
|
|
14
17
|
})(Language || (exports.Language = Language = {}));
|
|
15
18
|
//# sourceMappingURL=language.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language.enum.js","sourceRoot":"","sources":["../../src/general/language.enum.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"language.enum.js","sourceRoot":"","sources":["../../src/general/language.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,IAAY,QAIX;AAJD,WAAY,QAAQ;IACnB,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,0BAAc,CAAA;AACf,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB"}
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './utils/transformers.helper';
|
|
|
6
6
|
export * from './auth/auth.dto';
|
|
7
7
|
export * from './auth/token.model';
|
|
8
8
|
export * from './auth/verification-status.model';
|
|
9
|
+
export * from './auth/user.model';
|
|
9
10
|
export * from './general/translations';
|
|
10
11
|
export * from './general/sort.dto';
|
|
11
12
|
export * from './foundation/person.dto';
|
package/lib/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./utils/transformers.helper"), exports);
|
|
|
22
22
|
__exportStar(require("./auth/auth.dto"), exports);
|
|
23
23
|
__exportStar(require("./auth/token.model"), exports);
|
|
24
24
|
__exportStar(require("./auth/verification-status.model"), exports);
|
|
25
|
+
__exportStar(require("./auth/user.model"), exports);
|
|
25
26
|
__exportStar(require("./general/translations"), exports);
|
|
26
27
|
__exportStar(require("./general/sort.dto"), exports);
|
|
27
28
|
__exportStar(require("./foundation/person.dto"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,iEAA+C;AAC/C,qDAAmC;AACnC,8DAA4C;AAC5C,kDAAgC;AAChC,qDAAmC;AACnC,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,0DAAwC;AACxC,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,2DAAyC;AACzC,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,oDAAkC;AAClC,sDAAoC;AACpC,yDAAuC;AACvC,0DAAwC;AACxC,4DAA0C;AAC1C,oDAAkC;AAClC,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,iEAA+C;AAC/C,qDAAmC;AACnC,8DAA4C;AAC5C,kDAAgC;AAChC,qDAAmC;AACnC,mEAAiD;AACjD,oDAAkC;AAClC,yDAAuC;AACvC,qDAAmC;AACnC,0DAAwC;AACxC,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,2DAAyC;AACzC,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,oDAAkC;AAClC,sDAAoC;AACpC,yDAAuC;AACvC,0DAAwC;AACxC,4DAA0C;AAC1C,oDAAkC;AAClC,sDAAoC"}
|
|
@@ -16,7 +16,7 @@ export declare class MagazineArticleDto {
|
|
|
16
16
|
/**
|
|
17
17
|
* Saves the issue's `issueNumber`. `null` clears it.
|
|
18
18
|
*
|
|
19
|
-
* The issue number as it is printed (`12`, `2026/1`).
|
|
19
|
+
* The issue number as it is printed (`12`, `2026/1`). A new issue number gives the issue a new slug.
|
|
20
20
|
*/
|
|
21
21
|
export declare class MagazineIssueNumberDto {
|
|
22
22
|
issueNumber?: string;
|
|
@@ -50,7 +50,7 @@ export declare class MagazinePrefaceDto {
|
|
|
50
50
|
/**
|
|
51
51
|
* Saves the issue's `priceEur`. `null` clears it.
|
|
52
52
|
*
|
|
53
|
-
*
|
|
53
|
+
* Price in euros.
|
|
54
54
|
*/
|
|
55
55
|
export declare class MagazinePriceEurDto {
|
|
56
56
|
priceEur?: number;
|
|
@@ -59,7 +59,7 @@ export declare class MagazinePriceEurDto {
|
|
|
59
59
|
/**
|
|
60
60
|
* Saves the issue's `priceMkd`. `null` clears it.
|
|
61
61
|
*
|
|
62
|
-
*
|
|
62
|
+
* Price in Macedonian denars, entered separately rather than converted.
|
|
63
63
|
*/
|
|
64
64
|
export declare class MagazinePriceMkdDto {
|
|
65
65
|
priceMkd?: number;
|
|
@@ -74,15 +74,6 @@ export declare class MagazineIsAvailableDto {
|
|
|
74
74
|
isAvailable?: boolean;
|
|
75
75
|
constructor(props?: Partial<MagazineIsAvailableDto>);
|
|
76
76
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Saves the issue's `title` in one language, sent with its `language`. `null` clears it.
|
|
79
|
-
*
|
|
80
|
-
* A new Albanian title gives the issue a new slug.
|
|
81
|
-
*/
|
|
82
|
-
export declare class MagazineTitleDto extends LanguageDto {
|
|
83
|
-
title?: string;
|
|
84
|
-
constructor(props?: Partial<MagazineTitleDto>);
|
|
85
|
-
}
|
|
86
77
|
/**
|
|
87
78
|
* Saves the issue's `shortDescription` in one language, sent with its `language`. `null` clears it.
|
|
88
79
|
*/
|
|
@@ -116,7 +107,7 @@ export declare class MagazineSeoDescriptionDto extends LanguageDto {
|
|
|
116
107
|
*/
|
|
117
108
|
export declare class MagazineFilterDto {
|
|
118
109
|
/**
|
|
119
|
-
* Matches the
|
|
110
|
+
* Matches the issue number and the ISSN.
|
|
120
111
|
*/
|
|
121
112
|
phrase?: string;
|
|
122
113
|
status?: PublishStatus;
|
|
@@ -9,7 +9,7 @@ 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.MagazineFilterDto = exports.MagazineSeoDescriptionDto = exports.MagazineSeoTitleDto = exports.MagazineDescriptionDto = exports.MagazineShortDescriptionDto = exports.
|
|
12
|
+
exports.MagazineFilterDto = exports.MagazineSeoDescriptionDto = exports.MagazineSeoTitleDto = exports.MagazineDescriptionDto = exports.MagazineShortDescriptionDto = exports.MagazineIsAvailableDto = exports.MagazinePriceMkdDto = exports.MagazinePriceEurDto = exports.MagazinePrefaceDto = exports.MagazineIssnDto = exports.MagazinePublicationDateDto = exports.MagazineIssueNumberDto = exports.MagazineArticleDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const common_1 = require("@intelact/common");
|
|
15
15
|
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
/**
|
|
49
49
|
* Saves the issue's `issueNumber`. `null` clears it.
|
|
50
50
|
*
|
|
51
|
-
* The issue number as it is printed (`12`, `2026/1`).
|
|
51
|
+
* The issue number as it is printed (`12`, `2026/1`). A new issue number gives the issue a new slug.
|
|
52
52
|
*/
|
|
53
53
|
class MagazineIssueNumberDto {
|
|
54
54
|
issueNumber;
|
|
@@ -121,7 +121,7 @@ __decorate([
|
|
|
121
121
|
/**
|
|
122
122
|
* Saves the issue's `priceEur`. `null` clears it.
|
|
123
123
|
*
|
|
124
|
-
*
|
|
124
|
+
* Price in euros.
|
|
125
125
|
*/
|
|
126
126
|
class MagazinePriceEurDto {
|
|
127
127
|
priceEur;
|
|
@@ -140,7 +140,7 @@ __decorate([
|
|
|
140
140
|
/**
|
|
141
141
|
* Saves the issue's `priceMkd`. `null` clears it.
|
|
142
142
|
*
|
|
143
|
-
*
|
|
143
|
+
* Price in Macedonian denars, entered separately rather than converted.
|
|
144
144
|
*/
|
|
145
145
|
class MagazinePriceMkdDto {
|
|
146
146
|
priceMkd;
|
|
@@ -171,28 +171,9 @@ exports.MagazineIsAvailableDto = MagazineIsAvailableDto;
|
|
|
171
171
|
__decorate([
|
|
172
172
|
(0, class_validator_1.IsOptional)(),
|
|
173
173
|
(0, class_validator_1.IsBoolean)({ message: 'gnosa.validation.magazine.availability' }),
|
|
174
|
+
(0, transformers_helper_1.AsSent)(),
|
|
174
175
|
__metadata("design:type", Boolean)
|
|
175
176
|
], MagazineIsAvailableDto.prototype, "isAvailable", void 0);
|
|
176
|
-
/**
|
|
177
|
-
* Saves the issue's `title` in one language, sent with its `language`. `null` clears it.
|
|
178
|
-
*
|
|
179
|
-
* A new Albanian title gives the issue a new slug.
|
|
180
|
-
*/
|
|
181
|
-
class MagazineTitleDto extends language_dto_1.LanguageDto {
|
|
182
|
-
title;
|
|
183
|
-
constructor(props) {
|
|
184
|
-
super();
|
|
185
|
-
Object.assign(this, props);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
exports.MagazineTitleDto = MagazineTitleDto;
|
|
189
|
-
__decorate([
|
|
190
|
-
(0, class_validator_1.IsOptional)(),
|
|
191
|
-
(0, class_validator_1.IsString)({ message: 'gnosa.validation.magazine.title' }),
|
|
192
|
-
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.magazine.title' }),
|
|
193
|
-
(0, common_1.Trim)(),
|
|
194
|
-
__metadata("design:type", String)
|
|
195
|
-
], MagazineTitleDto.prototype, "title", void 0);
|
|
196
177
|
/**
|
|
197
178
|
* Saves the issue's `shortDescription` in one language, sent with its `language`. `null` clears it.
|
|
198
179
|
*/
|
|
@@ -270,7 +251,7 @@ __decorate([
|
|
|
270
251
|
*/
|
|
271
252
|
class MagazineFilterDto {
|
|
272
253
|
/**
|
|
273
|
-
* Matches the
|
|
254
|
+
* Matches the issue number and the ISSN.
|
|
274
255
|
*/
|
|
275
256
|
phrase;
|
|
276
257
|
status;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magazine.dto.js","sourceRoot":"","sources":["../../src/magazine/magazine.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,6CAAmD;AAEnD,
|
|
1
|
+
{"version":3,"file":"magazine.dto.js","sourceRoot":"","sources":["../../src/magazine/magazine.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,6CAAmD;AAEnD,sEAAiE;AACjE,wEAA+D;AAC/D,0DAAsD;AAEtD;;;;GAIG;AACH,MAAa,kBAAkB;IAK9B,KAAK,CAAU;IAEf;;OAEG;IAKH,OAAO,CAAU;IAEjB,YAAY,KAAmC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnBD,gDAmBC;AAdA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAC/D,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE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