@intelact/gnosa 0.1.2 → 0.1.4
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 +11 -20
- package/lib/book/book.dto.js +18 -48
- package/lib/book/book.dto.js.map +1 -1
- package/lib/book/book.model.d.ts +2 -4
- package/lib/book/book.model.js +2 -12
- package/lib/book/book.model.js.map +1 -1
- package/lib/discover/discover.dto.d.ts +29 -4
- package/lib/discover/discover.dto.js +65 -8
- package/lib/discover/discover.dto.js.map +1 -1
- package/lib/discover/discover.model.d.ts +16 -4
- package/lib/discover/discover.model.js +38 -5
- package/lib/discover/discover.model.js.map +1 -1
- package/lib/event/event.dto.d.ts +12 -33
- package/lib/event/event.dto.js +19 -62
- 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 +51 -18
- package/lib/foundation/history.dto.js +107 -55
- package/lib/foundation/history.dto.js.map +1 -1
- package/lib/foundation/history.model.d.ts +20 -6
- package/lib/foundation/history.model.js +56 -6
- package/lib/foundation/history.model.js.map +1 -1
- package/lib/foundation/partner.dto.d.ts +6 -2
- package/lib/foundation/partner.dto.js +6 -2
- package/lib/foundation/partner.dto.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.dto.d.ts +6 -1
- package/lib/foundation/person.dto.js +12 -1
- package/lib/foundation/person.dto.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 +7 -15
- package/lib/magazine/magazine.dto.js +8 -27
- 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 -16
- package/lib/order/order.dto.js +3 -34
- 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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.dto.js","sourceRoot":"","sources":["../../src/foundation/history.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"history.dto.js","sourceRoot":"","sources":["../../src/foundation/history.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,6CAAwC;AAExC,wEAA+D;AAC/D,sEAAyD;AACzD,0DAAsD;AAEtD;;;;GAIG;AACH,MAAa,cAAc;IAI1B,IAAI,CAAQ;IAEZ,YAAY,KAA+B;QAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AATD,wCASC;AALA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;IACpD,IAAA,+BAAS,GAAE;8BACL,IAAI;4CAAC;AAOb;;;;GAIG;AACH,MAAa,eAAgB,SAAQ,0BAAW;IAK/C,KAAK,CAAU;IAEf,YAAY,KAAgC;QAC3C,KAAK,EA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from '../general/translations';
|
|
2
3
|
export declare class HistoryTranslation {
|
|
3
4
|
title: string;
|
|
5
|
+
shortDescription: string;
|
|
6
|
+
/**
|
|
7
|
+
* The full description.
|
|
8
|
+
*/
|
|
4
9
|
description: string;
|
|
10
|
+
seoTitle: string;
|
|
11
|
+
seoDescription: string;
|
|
5
12
|
constructor(props?: Partial<HistoryTranslation>);
|
|
6
13
|
}
|
|
7
14
|
/**
|
|
8
|
-
* An entry of the foundation's history timeline.
|
|
15
|
+
* An entry of the foundation's history timeline. Like the other content records it is a Draft
|
|
16
|
+
* until it is published, and only Published entries are on the website.
|
|
9
17
|
*/
|
|
10
18
|
export declare class History {
|
|
11
19
|
slug: string;
|
|
20
|
+
status: PublishStatus;
|
|
12
21
|
imageUrl: string;
|
|
22
|
+
/**
|
|
23
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
24
|
+
*/
|
|
25
|
+
imageName: string;
|
|
26
|
+
imageSize: number;
|
|
13
27
|
/**
|
|
14
28
|
* In UTC.
|
|
15
29
|
*/
|
|
16
30
|
date: Date;
|
|
17
31
|
/**
|
|
18
|
-
* The
|
|
32
|
+
* The localized fields in the app language (lists and the public page).
|
|
19
33
|
*/
|
|
20
34
|
title?: string;
|
|
21
|
-
|
|
22
|
-
* The description in the app language (lists and the public page).
|
|
23
|
-
*/
|
|
35
|
+
shortDescription?: string;
|
|
24
36
|
description?: string;
|
|
37
|
+
seoTitle?: string;
|
|
38
|
+
seoDescription?: string;
|
|
25
39
|
/**
|
|
26
|
-
* The
|
|
40
|
+
* The localized fields in every language (the editor).
|
|
27
41
|
*/
|
|
28
42
|
translations?: Translations<HistoryTranslation>;
|
|
29
43
|
constructor(props?: Partial<History>);
|
|
@@ -11,9 +11,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.History = exports.HistoryTranslation = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const publish_status_enum_1 = require("../general/publish-status.enum");
|
|
14
15
|
class HistoryTranslation {
|
|
15
16
|
title;
|
|
17
|
+
shortDescription;
|
|
18
|
+
/**
|
|
19
|
+
* The full description.
|
|
20
|
+
*/
|
|
16
21
|
description;
|
|
22
|
+
seoTitle;
|
|
23
|
+
seoDescription;
|
|
17
24
|
constructor(props) {
|
|
18
25
|
Object.assign(this, props);
|
|
19
26
|
}
|
|
@@ -23,30 +30,49 @@ __decorate([
|
|
|
23
30
|
(0, class_transformer_1.Expose)(),
|
|
24
31
|
__metadata("design:type", String)
|
|
25
32
|
], HistoryTranslation.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], HistoryTranslation.prototype, "shortDescription", void 0);
|
|
26
37
|
__decorate([
|
|
27
38
|
(0, class_transformer_1.Expose)(),
|
|
28
39
|
__metadata("design:type", String)
|
|
29
40
|
], HistoryTranslation.prototype, "description", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], HistoryTranslation.prototype, "seoTitle", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], HistoryTranslation.prototype, "seoDescription", void 0);
|
|
30
49
|
/**
|
|
31
|
-
* An entry of the foundation's history timeline.
|
|
50
|
+
* An entry of the foundation's history timeline. Like the other content records it is a Draft
|
|
51
|
+
* until it is published, and only Published entries are on the website.
|
|
32
52
|
*/
|
|
33
53
|
class History {
|
|
34
54
|
slug;
|
|
55
|
+
status;
|
|
35
56
|
imageUrl;
|
|
57
|
+
/**
|
|
58
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
59
|
+
*/
|
|
60
|
+
imageName;
|
|
61
|
+
imageSize;
|
|
36
62
|
/**
|
|
37
63
|
* In UTC.
|
|
38
64
|
*/
|
|
39
65
|
date;
|
|
40
66
|
/**
|
|
41
|
-
* The
|
|
67
|
+
* The localized fields in the app language (lists and the public page).
|
|
42
68
|
*/
|
|
43
69
|
title;
|
|
44
|
-
|
|
45
|
-
* The description in the app language (lists and the public page).
|
|
46
|
-
*/
|
|
70
|
+
shortDescription;
|
|
47
71
|
description;
|
|
72
|
+
seoTitle;
|
|
73
|
+
seoDescription;
|
|
48
74
|
/**
|
|
49
|
-
* The
|
|
75
|
+
* The localized fields in every language (the editor).
|
|
50
76
|
*/
|
|
51
77
|
translations;
|
|
52
78
|
constructor(props) {
|
|
@@ -58,10 +84,22 @@ __decorate([
|
|
|
58
84
|
(0, class_transformer_1.Expose)(),
|
|
59
85
|
__metadata("design:type", String)
|
|
60
86
|
], History.prototype, "slug", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_transformer_1.Expose)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], History.prototype, "status", void 0);
|
|
61
91
|
__decorate([
|
|
62
92
|
(0, class_transformer_1.Expose)(),
|
|
63
93
|
__metadata("design:type", String)
|
|
64
94
|
], History.prototype, "imageUrl", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], History.prototype, "imageName", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_transformer_1.Expose)(),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], History.prototype, "imageSize", void 0);
|
|
65
103
|
__decorate([
|
|
66
104
|
(0, class_transformer_1.Expose)(),
|
|
67
105
|
(0, class_transformer_1.Type)(() => Date),
|
|
@@ -71,10 +109,22 @@ __decorate([
|
|
|
71
109
|
(0, class_transformer_1.Expose)(),
|
|
72
110
|
__metadata("design:type", String)
|
|
73
111
|
], History.prototype, "title", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_transformer_1.Expose)(),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], History.prototype, "shortDescription", void 0);
|
|
74
116
|
__decorate([
|
|
75
117
|
(0, class_transformer_1.Expose)(),
|
|
76
118
|
__metadata("design:type", String)
|
|
77
119
|
], History.prototype, "description", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, class_transformer_1.Expose)(),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], History.prototype, "seoTitle", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_transformer_1.Expose)(),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], History.prototype, "seoDescription", void 0);
|
|
78
128
|
__decorate([
|
|
79
129
|
(0, class_transformer_1.Expose)(),
|
|
80
130
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.model.js","sourceRoot":"","sources":["../../src/foundation/history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;
|
|
1
|
+
{"version":3,"file":"history.model.js","sourceRoot":"","sources":["../../src/foundation/history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,wEAA+D;AAG/D,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;;;GAGG;AACH,MAAa,OAAO;IAEnB,IAAI,CAAS;IAGb,MAAM,CAAgB;IAGtB,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;AArDD,0BAqDC;AAnDA;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;uCACa;AAGtB;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"}
|
|
@@ -12,11 +12,15 @@ export declare class PartnerTranslationsDto {
|
|
|
12
12
|
constructor(props?: Partial<PartnerTranslationsDto>);
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* The fields of a partner, sent as a multipart form together with the `logo` file
|
|
15
|
+
* The fields of a partner, sent as a multipart form together with the `logo` file, which is required
|
|
16
|
+
* when the partner is created.
|
|
16
17
|
*/
|
|
17
18
|
export declare class PartnerDto {
|
|
18
19
|
name: string;
|
|
19
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The partner's website, optional.
|
|
22
|
+
*/
|
|
23
|
+
externalUrl?: string;
|
|
20
24
|
translations: PartnerTranslationsDto;
|
|
21
25
|
constructor(props?: Partial<PartnerDto>);
|
|
22
26
|
}
|
|
@@ -58,10 +58,14 @@ __decorate([
|
|
|
58
58
|
__metadata("design:type", PartnerTranslationDto)
|
|
59
59
|
], PartnerTranslationsDto.prototype, "mk", void 0);
|
|
60
60
|
/**
|
|
61
|
-
* The fields of a partner, sent as a multipart form together with the `logo` file
|
|
61
|
+
* The fields of a partner, sent as a multipart form together with the `logo` file, which is required
|
|
62
|
+
* when the partner is created.
|
|
62
63
|
*/
|
|
63
64
|
class PartnerDto {
|
|
64
65
|
name;
|
|
66
|
+
/**
|
|
67
|
+
* The partner's website, optional.
|
|
68
|
+
*/
|
|
65
69
|
externalUrl;
|
|
66
70
|
translations;
|
|
67
71
|
constructor(props) {
|
|
@@ -77,7 +81,7 @@ __decorate([
|
|
|
77
81
|
__metadata("design:type", String)
|
|
78
82
|
], PartnerDto.prototype, "name", void 0);
|
|
79
83
|
__decorate([
|
|
80
|
-
(0, class_validator_1.
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
85
|
(0, class_validator_1.IsUrl)({ protocols: ['http', 'https'], require_protocol: true }, { message: 'gnosa.validation.url.invalid' }),
|
|
82
86
|
(0, class_validator_1.MaxLength)(1024, { message: 'gnosa.validation.url.invalid' }),
|
|
83
87
|
(0, common_1.Trim)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner.dto.js","sourceRoot":"","sources":["../../src/foundation/partner.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"partner.dto.js","sourceRoot":"","sources":["../../src/foundation/partner.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgH;AAChH,6CAAwC;AACxC,yDAAyC;AAEzC,MAAa,qBAAqB;IAKjC,WAAW,CAAS;IAEpB,YAAY,KAAsC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IAKtB,IAAI,CAAS;IAEb;;OAEG;IAKH,WAAW,CAAU;IAKrB,YAAY,CAAyB;IAErC,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxBD,gCAwBC;AAnBA;IAJC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACzD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACvD,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;IAC5D,IAAA,aAAI,GAAE;;wCACM;AASb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC5G,IAAA,2BAAS,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC5D,IAAA,aAAI,GAAE;;+CACc;AAKrB;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"}
|
|
@@ -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"}
|
|
@@ -14,12 +14,17 @@ export declare class PersonTranslationsDto {
|
|
|
14
14
|
constructor(props?: Partial<PersonTranslationsDto>);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* The fields of a person, sent as a multipart form together with the `image` file.
|
|
17
|
+
* The fields of a person, sent as a multipart form together with the optional `image` file.
|
|
18
18
|
*/
|
|
19
19
|
export declare class PersonDto {
|
|
20
20
|
name: string;
|
|
21
21
|
group: PersonGroup;
|
|
22
22
|
translations: PersonTranslationsDto;
|
|
23
|
+
/**
|
|
24
|
+
* Removes the person's photo when no new `image` is sent. Left out, the photo is kept. Read from
|
|
25
|
+
* the raw form value: the implicit conversion would turn the text `"false"` into `true`.
|
|
26
|
+
*/
|
|
27
|
+
removeImage?: boolean;
|
|
23
28
|
constructor(props?: Partial<PersonDto>);
|
|
24
29
|
}
|
|
25
30
|
/**
|
|
@@ -60,12 +60,17 @@ __decorate([
|
|
|
60
60
|
__metadata("design:type", PersonTranslationDto)
|
|
61
61
|
], PersonTranslationsDto.prototype, "mk", void 0);
|
|
62
62
|
/**
|
|
63
|
-
* The fields of a person, sent as a multipart form together with the `image` file.
|
|
63
|
+
* The fields of a person, sent as a multipart form together with the optional `image` file.
|
|
64
64
|
*/
|
|
65
65
|
class PersonDto {
|
|
66
66
|
name;
|
|
67
67
|
group;
|
|
68
68
|
translations;
|
|
69
|
+
/**
|
|
70
|
+
* Removes the person's photo when no new `image` is sent. Left out, the photo is kept. Read from
|
|
71
|
+
* the raw form value: the implicit conversion would turn the text `"false"` into `true`.
|
|
72
|
+
*/
|
|
73
|
+
removeImage;
|
|
69
74
|
constructor(props) {
|
|
70
75
|
Object.assign(this, props);
|
|
71
76
|
}
|
|
@@ -88,6 +93,12 @@ __decorate([
|
|
|
88
93
|
(0, class_transformer_1.Type)(() => PersonTranslationsDto),
|
|
89
94
|
__metadata("design:type", PersonTranslationsDto)
|
|
90
95
|
], PersonDto.prototype, "translations", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsBoolean)(),
|
|
99
|
+
(0, class_transformer_1.Transform)(({ obj, key }) => obj[key] === true || obj[key] === 'true'),
|
|
100
|
+
__metadata("design:type", Boolean)
|
|
101
|
+
], PersonDto.prototype, "removeImage", void 0);
|
|
91
102
|
/**
|
|
92
103
|
* A new manual order of one group's people.
|
|
93
104
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.dto.js","sourceRoot":"","sources":["../../src/foundation/person.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"person.dto.js","sourceRoot":"","sources":["../../src/foundation/person.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4H;AAC5H,6CAAwC;AACxC,yDAAoD;AAEpD,2DAAkD;AAClD,kDAA8C;AAE9C,MAAa,oBAAoB;IAKhC,QAAQ,CAAS;IAEjB,YAAY,KAAqC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAVD,oDAUC;AALA;IAJC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;IAC7D,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;IAC3D,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IAChE,IAAA,aAAI,GAAE;;sDACU;AAOlB;;GAEG;AACH,MAAa,qBAAqB;IAIjC,EAAE,CAAuB;IAKzB,EAAE,CAAuB;IAKzB,EAAE,CAAuB;IAEzB,YAAY,KAAsC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnBD,sDAmBC;AAfA;IAHC,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC1D,IAAA,gCAAc,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC/D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BAC7B,oBAAoB;iDAAC;AAKzB;IAHC,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC1D,IAAA,gCAAc,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC/D,IAAA,wBAAI,EAAC,GAAG,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,GAAG,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC;;8CAChD;AAOvB;;GAEG;AACH,MAAa,aAAc,SAAQ,kBAAO;IAEzC,KAAK,CAAc;IAEnB,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AARD,sCAQC;AANA;IADC,IAAA,wBAAM,EAAC,+BAAW,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;4CAChD"}
|
|
@@ -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
|
*/
|
|
@@ -112,16 +103,17 @@ export declare class MagazineSeoDescriptionDto extends LanguageDto {
|
|
|
112
103
|
constructor(props?: Partial<MagazineSeoDescriptionDto>);
|
|
113
104
|
}
|
|
114
105
|
/**
|
|
115
|
-
* The search and filters of the admin Magazines List.
|
|
106
|
+
* The search and filters of the admin Magazines List. The list's Availability filter is the two
|
|
107
|
+
* flags together, as for books: only physical, only PDF, both or neither.
|
|
116
108
|
*/
|
|
117
109
|
export declare class MagazineFilterDto {
|
|
118
110
|
/**
|
|
119
|
-
* Matches the
|
|
111
|
+
* Matches the issue number and the ISSN.
|
|
120
112
|
*/
|
|
121
113
|
phrase?: string;
|
|
122
114
|
status?: PublishStatus;
|
|
123
115
|
/**
|
|
124
|
-
* Whether the physical issue can be ordered.
|
|
116
|
+
* Whether the physical issue can be ordered. `false` also matches a Draft that leaves it unset.
|
|
125
117
|
*/
|
|
126
118
|
isAvailable?: boolean;
|
|
127
119
|
/**
|
|
@@ -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;
|
|
@@ -174,26 +174,6 @@ __decorate([
|
|
|
174
174
|
(0, transformers_helper_1.AsSent)(),
|
|
175
175
|
__metadata("design:type", Boolean)
|
|
176
176
|
], MagazineIsAvailableDto.prototype, "isAvailable", void 0);
|
|
177
|
-
/**
|
|
178
|
-
* Saves the issue's `title` in one language, sent with its `language`. `null` clears it.
|
|
179
|
-
*
|
|
180
|
-
* A new Albanian title gives the issue a new slug.
|
|
181
|
-
*/
|
|
182
|
-
class MagazineTitleDto extends language_dto_1.LanguageDto {
|
|
183
|
-
title;
|
|
184
|
-
constructor(props) {
|
|
185
|
-
super();
|
|
186
|
-
Object.assign(this, props);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
exports.MagazineTitleDto = MagazineTitleDto;
|
|
190
|
-
__decorate([
|
|
191
|
-
(0, class_validator_1.IsOptional)(),
|
|
192
|
-
(0, class_validator_1.IsString)({ message: 'gnosa.validation.magazine.title' }),
|
|
193
|
-
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.magazine.title' }),
|
|
194
|
-
(0, common_1.Trim)(),
|
|
195
|
-
__metadata("design:type", String)
|
|
196
|
-
], MagazineTitleDto.prototype, "title", void 0);
|
|
197
177
|
/**
|
|
198
178
|
* Saves the issue's `shortDescription` in one language, sent with its `language`. `null` clears it.
|
|
199
179
|
*/
|
|
@@ -267,16 +247,17 @@ __decorate([
|
|
|
267
247
|
__metadata("design:type", String)
|
|
268
248
|
], MagazineSeoDescriptionDto.prototype, "seoDescription", void 0);
|
|
269
249
|
/**
|
|
270
|
-
* The search and filters of the admin Magazines List.
|
|
250
|
+
* The search and filters of the admin Magazines List. The list's Availability filter is the two
|
|
251
|
+
* flags together, as for books: only physical, only PDF, both or neither.
|
|
271
252
|
*/
|
|
272
253
|
class MagazineFilterDto {
|
|
273
254
|
/**
|
|
274
|
-
* Matches the
|
|
255
|
+
* Matches the issue number and the ISSN.
|
|
275
256
|
*/
|
|
276
257
|
phrase;
|
|
277
258
|
status;
|
|
278
259
|
/**
|
|
279
|
-
* Whether the physical issue can be ordered.
|
|
260
|
+
* Whether the physical issue can be ordered. `false` also matches a Draft that leaves it unset.
|
|
280
261
|
*/
|
|
281
262
|
isAvailable;
|
|
282
263
|
/**
|