@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
package/lib/event/event.dto.d.ts
CHANGED
|
@@ -2,28 +2,26 @@ import { EventPeriod, EventStatus } from './event.enum';
|
|
|
2
2
|
import { LanguageDto } from '../general/language.dto';
|
|
3
3
|
import { Language } from '../general/language.enum';
|
|
4
4
|
export declare class EventSpeakerTranslationDto {
|
|
5
|
-
description
|
|
5
|
+
description: string;
|
|
6
6
|
constructor(props?: Partial<EventSpeakerTranslationDto>);
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* A speaker's short description is required in all three languages.
|
|
10
|
+
*/
|
|
8
11
|
export declare class EventSpeakerTranslationsDto {
|
|
9
|
-
sq
|
|
10
|
-
en
|
|
11
|
-
mk
|
|
12
|
+
sq: EventSpeakerTranslationDto;
|
|
13
|
+
en: EventSpeakerTranslationDto;
|
|
14
|
+
mk: EventSpeakerTranslationDto;
|
|
12
15
|
constructor(props?: Partial<EventSpeakerTranslationsDto>);
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
|
-
* A speaker or artist of the event, sent as a multipart form together with the
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
+
* A speaker or artist of the event, sent as a multipart form together with the image `file`, which
|
|
19
|
+
* is required when the speaker is added. A speaker is always complete: the name, the image and the
|
|
20
|
+
* short description in all three languages.
|
|
18
21
|
*/
|
|
19
22
|
export declare class EventSpeakerDto {
|
|
20
|
-
name
|
|
21
|
-
translations
|
|
22
|
-
/**
|
|
23
|
-
* Removes the speaker's image when no new `file` is sent. Left out, the image is kept. Read from
|
|
24
|
-
* the raw form value: the implicit conversion would turn the text `"false"` into `true`.
|
|
25
|
-
*/
|
|
26
|
-
removeImage?: boolean;
|
|
23
|
+
name: string;
|
|
24
|
+
translations: EventSpeakerTranslationsDto;
|
|
27
25
|
constructor(props?: Partial<EventSpeakerDto>);
|
|
28
26
|
}
|
|
29
27
|
/**
|
|
@@ -35,15 +33,6 @@ export declare class EventStartDateDto {
|
|
|
35
33
|
startDate?: Date;
|
|
36
34
|
constructor(props?: Partial<EventStartDateDto>);
|
|
37
35
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Saves the event's `timezone`. `null` clears it.
|
|
40
|
-
*
|
|
41
|
-
* The IANA time zone the event takes place in (`Europe/Skopje`).
|
|
42
|
-
*/
|
|
43
|
-
export declare class EventTimezoneDto {
|
|
44
|
-
timezone?: string;
|
|
45
|
-
constructor(props?: Partial<EventTimezoneDto>);
|
|
46
|
-
}
|
|
47
36
|
/**
|
|
48
37
|
* Saves the event's `languages`. `null` clears it.
|
|
49
38
|
*
|
|
@@ -104,16 +93,6 @@ export declare class EventSeoDescriptionDto extends LanguageDto {
|
|
|
104
93
|
seoDescription?: string;
|
|
105
94
|
constructor(props?: Partial<EventSeoDescriptionDto>);
|
|
106
95
|
}
|
|
107
|
-
/**
|
|
108
|
-
* The filters of the public Events Catalogue.
|
|
109
|
-
*/
|
|
110
|
-
export declare class EventCatalogueFilterDto {
|
|
111
|
-
/**
|
|
112
|
-
* Upcoming (the default) or past events.
|
|
113
|
-
*/
|
|
114
|
-
period?: EventPeriod;
|
|
115
|
-
constructor(props?: Partial<EventCatalogueFilterDto>);
|
|
116
|
-
}
|
|
117
96
|
/**
|
|
118
97
|
* The search and filters of the admin Events List.
|
|
119
98
|
*/
|
package/lib/event/event.dto.js
CHANGED
|
@@ -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.EventFilterDto = exports.
|
|
12
|
+
exports.EventFilterDto = exports.EventSeoDescriptionDto = exports.EventSeoTitleDto = exports.EventLocationAddressDto = exports.EventLocationNameDto = exports.EventDescriptionDto = exports.EventShortDescriptionDto = exports.EventTitleDto = exports.EventLanguagesDto = exports.EventStartDateDto = exports.EventSpeakerDto = exports.EventSpeakerTranslationsDto = exports.EventSpeakerTranslationDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const common_1 = require("@intelact/common");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
@@ -25,12 +25,15 @@ class EventSpeakerTranslationDto {
|
|
|
25
25
|
}
|
|
26
26
|
exports.EventSpeakerTranslationDto = EventSpeakerTranslationDto;
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, class_validator_1.
|
|
29
|
-
(0, class_validator_1.IsString)({ message: 'gnosa.validation.
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.shortDescription.required' }),
|
|
29
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.shortDescription.required' }),
|
|
30
30
|
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.event.speakerDescription' }),
|
|
31
31
|
(0, common_1.Trim)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], EventSpeakerTranslationDto.prototype, "description", void 0);
|
|
34
|
+
/**
|
|
35
|
+
* A speaker's short description is required in all three languages.
|
|
36
|
+
*/
|
|
34
37
|
class EventSpeakerTranslationsDto {
|
|
35
38
|
sq;
|
|
36
39
|
en;
|
|
@@ -41,60 +44,49 @@ class EventSpeakerTranslationsDto {
|
|
|
41
44
|
}
|
|
42
45
|
exports.EventSpeakerTranslationsDto = EventSpeakerTranslationsDto;
|
|
43
46
|
__decorate([
|
|
44
|
-
(0, class_validator_1.
|
|
45
|
-
(0, class_validator_1.ValidateNested)(),
|
|
47
|
+
(0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.sq' }),
|
|
48
|
+
(0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.sq' }),
|
|
46
49
|
(0, class_transformer_1.Type)(() => EventSpeakerTranslationDto),
|
|
47
50
|
__metadata("design:type", EventSpeakerTranslationDto)
|
|
48
51
|
], EventSpeakerTranslationsDto.prototype, "sq", void 0);
|
|
49
52
|
__decorate([
|
|
50
|
-
(0, class_validator_1.
|
|
51
|
-
(0, class_validator_1.ValidateNested)(),
|
|
53
|
+
(0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.en' }),
|
|
54
|
+
(0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.en' }),
|
|
52
55
|
(0, class_transformer_1.Type)(() => EventSpeakerTranslationDto),
|
|
53
56
|
__metadata("design:type", EventSpeakerTranslationDto)
|
|
54
57
|
], EventSpeakerTranslationsDto.prototype, "en", void 0);
|
|
55
58
|
__decorate([
|
|
56
|
-
(0, class_validator_1.
|
|
57
|
-
(0, class_validator_1.ValidateNested)(),
|
|
59
|
+
(0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.mk' }),
|
|
60
|
+
(0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.mk' }),
|
|
58
61
|
(0, class_transformer_1.Type)(() => EventSpeakerTranslationDto),
|
|
59
62
|
__metadata("design:type", EventSpeakerTranslationDto)
|
|
60
63
|
], EventSpeakerTranslationsDto.prototype, "mk", void 0);
|
|
61
64
|
/**
|
|
62
|
-
* A speaker or artist of the event, sent as a multipart form together with the
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
+
* A speaker or artist of the event, sent as a multipart form together with the image `file`, which
|
|
66
|
+
* is required when the speaker is added. A speaker is always complete: the name, the image and the
|
|
67
|
+
* short description in all three languages.
|
|
65
68
|
*/
|
|
66
69
|
class EventSpeakerDto {
|
|
67
70
|
name;
|
|
68
71
|
translations;
|
|
69
|
-
/**
|
|
70
|
-
* Removes the speaker's image when no new `file` is sent. Left out, the image is kept. Read from
|
|
71
|
-
* the raw form value: the implicit conversion would turn the text `"false"` into `true`.
|
|
72
|
-
*/
|
|
73
|
-
removeImage;
|
|
74
72
|
constructor(props) {
|
|
75
73
|
Object.assign(this, props);
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
exports.EventSpeakerDto = EventSpeakerDto;
|
|
79
77
|
__decorate([
|
|
80
|
-
(0, class_validator_1.
|
|
81
|
-
(0, class_validator_1.IsString)({ message: 'gnosa.validation.
|
|
78
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.name.required' }),
|
|
79
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.name.required' }),
|
|
82
80
|
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.event.speakerName' }),
|
|
83
81
|
(0, common_1.Trim)(),
|
|
84
82
|
__metadata("design:type", String)
|
|
85
83
|
], EventSpeakerDto.prototype, "name", void 0);
|
|
86
84
|
__decorate([
|
|
87
|
-
(0, class_validator_1.
|
|
88
|
-
(0, class_validator_1.ValidateNested)(),
|
|
85
|
+
(0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.required' }),
|
|
86
|
+
(0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.required' }),
|
|
89
87
|
(0, class_transformer_1.Type)(() => EventSpeakerTranslationsDto),
|
|
90
88
|
__metadata("design:type", EventSpeakerTranslationsDto)
|
|
91
89
|
], EventSpeakerDto.prototype, "translations", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, class_validator_1.IsOptional)(),
|
|
94
|
-
(0, class_validator_1.IsBoolean)(),
|
|
95
|
-
(0, class_transformer_1.Transform)(({ obj, key }) => obj[key] === true || obj[key] === 'true'),
|
|
96
|
-
__metadata("design:type", Boolean)
|
|
97
|
-
], EventSpeakerDto.prototype, "removeImage", void 0);
|
|
98
90
|
/**
|
|
99
91
|
* Saves the event's `startDate`. `null` clears it.
|
|
100
92
|
*
|
|
@@ -113,23 +105,6 @@ __decorate([
|
|
|
113
105
|
(0, transformers_helper_1.ToUtcDate)(),
|
|
114
106
|
__metadata("design:type", Date)
|
|
115
107
|
], EventStartDateDto.prototype, "startDate", void 0);
|
|
116
|
-
/**
|
|
117
|
-
* Saves the event's `timezone`. `null` clears it.
|
|
118
|
-
*
|
|
119
|
-
* The IANA time zone the event takes place in (`Europe/Skopje`).
|
|
120
|
-
*/
|
|
121
|
-
class EventTimezoneDto {
|
|
122
|
-
timezone;
|
|
123
|
-
constructor(props) {
|
|
124
|
-
Object.assign(this, props);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.EventTimezoneDto = EventTimezoneDto;
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, class_validator_1.IsOptional)(),
|
|
130
|
-
(0, class_validator_1.IsTimeZone)({ message: 'gnosa.validation.event.timezone' }),
|
|
131
|
-
__metadata("design:type", String)
|
|
132
|
-
], EventTimezoneDto.prototype, "timezone", void 0);
|
|
133
108
|
/**
|
|
134
109
|
* Saves the event's `languages`. `null` clears it.
|
|
135
110
|
*
|
|
@@ -276,24 +251,6 @@ __decorate([
|
|
|
276
251
|
(0, common_1.Trim)(),
|
|
277
252
|
__metadata("design:type", String)
|
|
278
253
|
], EventSeoDescriptionDto.prototype, "seoDescription", void 0);
|
|
279
|
-
/**
|
|
280
|
-
* The filters of the public Events Catalogue.
|
|
281
|
-
*/
|
|
282
|
-
class EventCatalogueFilterDto {
|
|
283
|
-
/**
|
|
284
|
-
* Upcoming (the default) or past events.
|
|
285
|
-
*/
|
|
286
|
-
period;
|
|
287
|
-
constructor(props) {
|
|
288
|
-
Object.assign(this, props);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
exports.EventCatalogueFilterDto = EventCatalogueFilterDto;
|
|
292
|
-
__decorate([
|
|
293
|
-
(0, class_validator_1.IsOptional)(),
|
|
294
|
-
(0, class_validator_1.IsEnum)(event_enum_1.EventPeriod, { message: 'gnosa.validation.filter' }),
|
|
295
|
-
__metadata("design:type", String)
|
|
296
|
-
], EventCatalogueFilterDto.prototype, "period", void 0);
|
|
297
254
|
/**
|
|
298
255
|
* The search and filters of the admin Events List.
|
|
299
256
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.dto.js","sourceRoot":"","sources":["../../src/event/event.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkI;AAClI,6CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"event.dto.js","sourceRoot":"","sources":["../../src/event/event.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkI;AAClI,6CAAwC;AACxC,yDAAyC;AAEzC,sEAAyD;AACzD,6CAAwD;AACxD,0DAAsD;AACtD,4DAAoD;AAEpD,MAAa,0BAA0B;IAKtC,WAAW,CAAS;IAEpB,YAAY,KAA2C;QACtD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAVD,gEAUC;AALA;IAJC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;IACrE,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;IACnE,IAAA,2BAAS,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;IACzE,IAAA,aAAI,GAAE;;+DACa;AAOrB;;GAEG;AACH,MAAa,2BAA2B;IAIvC,EAAE,CAA6B;IAK/B,EAAE,CAA6B;IAK/B,EAAE,CAA6B;IAE/B,YAAY,KAA4C;QACvD,MAAM,CAAC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1B;;OAEG;IAIH,MAAM,CAAU;IAIhB,MAAM,CAAe;IAIrB,MAAM,CAAe;IAErB,YAAY,KAA+B;QAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApBD,wCAoBC;AAbA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAChD,IAAA,aAAI,GAAE;;8CACS;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAW,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;;8CACvC;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAW,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;;8CACvC"}
|
|
@@ -15,6 +15,11 @@ export declare class EventSpeaker {
|
|
|
15
15
|
slug?: string;
|
|
16
16
|
name: string;
|
|
17
17
|
imageUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
20
|
+
*/
|
|
21
|
+
imageName: string;
|
|
22
|
+
imageSize: number;
|
|
18
23
|
/**
|
|
19
24
|
* The short description in the app language (the public page).
|
|
20
25
|
*/
|
|
@@ -45,13 +50,14 @@ export declare class Event {
|
|
|
45
50
|
status: EventStatus;
|
|
46
51
|
imageUrl: string;
|
|
47
52
|
/**
|
|
48
|
-
*
|
|
53
|
+
* The image file name as it was uploaded, and its size in bytes.
|
|
49
54
|
*/
|
|
50
|
-
|
|
55
|
+
imageName: string;
|
|
56
|
+
imageSize: number;
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
58
|
+
* In UTC.
|
|
53
59
|
*/
|
|
54
|
-
|
|
60
|
+
startDate: Date;
|
|
55
61
|
/**
|
|
56
62
|
* The languages the event is held in.
|
|
57
63
|
*/
|
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,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAPD,0DAOC;AALA;IADC,IAAA,0BAAM,GAAE;;4DACW;AAOrB;;GAEG;AACH,MAAa,YAAY;IACxB;;OAEG;IAEH,IAAI,CAAU;IAGd,IAAI,CAAS;IAGb,QAAQ,CAAS;IAEjB;;OAEG;IAEH,WAAW,CAAU;IAErB;;OAEG;IAEH,YAAY,CAAyC;IAErD,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;
|
|
1
|
+
{"version":3,"file":"event.model.js","sourceRoot":"","sources":["../../src/event/event.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AA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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,27 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PublishStatus } from '../general/publish-status.enum';
|
|
2
|
+
import { LanguageDto } from '../general/language.dto';
|
|
3
|
+
/**
|
|
4
|
+
* Saves the entry's `date`. `null` clears it.
|
|
5
|
+
*
|
|
6
|
+
* In UTC, as an ISO 8601 date.
|
|
7
|
+
*/
|
|
8
|
+
export declare class HistoryDateDto {
|
|
9
|
+
date?: Date;
|
|
10
|
+
constructor(props?: Partial<HistoryDateDto>);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Saves the entry's `title` in one language, sent with its `language`. `null` clears it.
|
|
14
|
+
*
|
|
15
|
+
* A new Albanian title gives the entry a new slug.
|
|
16
|
+
*/
|
|
17
|
+
export declare class HistoryTitleDto extends LanguageDto {
|
|
18
|
+
title?: string;
|
|
19
|
+
constructor(props?: Partial<HistoryTitleDto>);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Saves the entry's `shortDescription` in one language, sent with its `language`. `null` clears it.
|
|
23
|
+
*/
|
|
24
|
+
export declare class HistoryShortDescriptionDto extends LanguageDto {
|
|
25
|
+
shortDescription?: string;
|
|
26
|
+
constructor(props?: Partial<HistoryShortDescriptionDto>);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Saves the entry's `description` (the full description) in one language, sent with its
|
|
30
|
+
* `language`. `null` clears it.
|
|
31
|
+
*/
|
|
32
|
+
export declare class HistoryDescriptionDto extends LanguageDto {
|
|
33
|
+
description?: string;
|
|
34
|
+
constructor(props?: Partial<HistoryDescriptionDto>);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Saves the entry's `seoTitle` in one language, sent with its `language`. `null` clears it.
|
|
38
|
+
*/
|
|
39
|
+
export declare class HistorySeoTitleDto extends LanguageDto {
|
|
40
|
+
seoTitle?: string;
|
|
41
|
+
constructor(props?: Partial<HistorySeoTitleDto>);
|
|
5
42
|
}
|
|
6
43
|
/**
|
|
7
|
-
*
|
|
8
|
-
* languages.
|
|
44
|
+
* Saves the entry's `seoDescription` in one language, sent with its `language`. `null` clears it.
|
|
9
45
|
*/
|
|
10
|
-
export declare class
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
mk: HistoryTranslationDto;
|
|
14
|
-
constructor(props?: Partial<HistoryTranslationsDto>);
|
|
46
|
+
export declare class HistorySeoDescriptionDto extends LanguageDto {
|
|
47
|
+
seoDescription?: string;
|
|
48
|
+
constructor(props?: Partial<HistorySeoDescriptionDto>);
|
|
15
49
|
}
|
|
16
50
|
/**
|
|
17
|
-
* The
|
|
18
|
-
* required when the entry is created.
|
|
51
|
+
* The search and filter of the admin History List.
|
|
19
52
|
*/
|
|
20
|
-
export declare class
|
|
53
|
+
export declare class HistoryFilterDto {
|
|
21
54
|
/**
|
|
22
|
-
*
|
|
55
|
+
* Matches the title, in any language.
|
|
23
56
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
constructor(props?: Partial<
|
|
57
|
+
phrase?: string;
|
|
58
|
+
status?: PublishStatus;
|
|
59
|
+
constructor(props?: Partial<HistoryFilterDto>);
|
|
27
60
|
}
|
|
@@ -9,94 +9,146 @@ 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.HistoryFilterDto = exports.HistorySeoDescriptionDto = exports.HistorySeoTitleDto = exports.HistoryDescriptionDto = exports.HistoryShortDescriptionDto = exports.HistoryTitleDto = exports.HistoryDateDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const common_1 = require("@intelact/common");
|
|
15
|
-
const
|
|
15
|
+
const publish_status_enum_1 = require("../general/publish-status.enum");
|
|
16
16
|
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
17
|
+
const language_dto_1 = require("../general/language.dto");
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Saves the entry's `date`. `null` clears it.
|
|
20
|
+
*
|
|
21
|
+
* In UTC, as an ISO 8601 date.
|
|
19
22
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
class HistoryDateDto {
|
|
24
|
+
date;
|
|
25
|
+
constructor(props) {
|
|
26
|
+
Object.assign(this, props);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.HistoryDateDto = HistoryDateDto;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsDate)({ message: 'gnosa.validation.date.invalid' }),
|
|
33
|
+
(0, transformers_helper_1.ToUtcDate)(),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], HistoryDateDto.prototype, "date", void 0);
|
|
36
|
+
/**
|
|
37
|
+
* Saves the entry's `title` in one language, sent with its `language`. `null` clears it.
|
|
38
|
+
*
|
|
39
|
+
* A new Albanian title gives the entry a new slug.
|
|
40
|
+
*/
|
|
41
|
+
class HistoryTitleDto extends language_dto_1.LanguageDto {
|
|
24
42
|
title;
|
|
25
|
-
description;
|
|
26
43
|
constructor(props) {
|
|
44
|
+
super();
|
|
27
45
|
Object.assign(this, props);
|
|
28
46
|
}
|
|
29
47
|
}
|
|
30
|
-
exports.
|
|
48
|
+
exports.HistoryTitleDto = HistoryTitleDto;
|
|
31
49
|
__decorate([
|
|
32
|
-
(0, class_validator_1.
|
|
33
|
-
(0, class_validator_1.IsString)({ message: 'gnosa.validation.title
|
|
34
|
-
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.title
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.history.title' }),
|
|
52
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.history.title' }),
|
|
35
53
|
(0, common_1.Trim)(),
|
|
36
54
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
55
|
+
], HistoryTitleDto.prototype, "title", void 0);
|
|
56
|
+
/**
|
|
57
|
+
* Saves the entry's `shortDescription` in one language, sent with its `language`. `null` clears it.
|
|
58
|
+
*/
|
|
59
|
+
class HistoryShortDescriptionDto extends language_dto_1.LanguageDto {
|
|
60
|
+
shortDescription;
|
|
61
|
+
constructor(props) {
|
|
62
|
+
super();
|
|
63
|
+
Object.assign(this, props);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.HistoryShortDescriptionDto = HistoryShortDescriptionDto;
|
|
38
67
|
__decorate([
|
|
39
|
-
(0, class_validator_1.
|
|
40
|
-
(0, class_validator_1.IsString)({ message: 'gnosa.validation.
|
|
41
|
-
(0, class_validator_1.MaxLength)(
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.history.shortDescription' }),
|
|
70
|
+
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.history.shortDescription' }),
|
|
42
71
|
(0, common_1.Trim)(),
|
|
43
72
|
__metadata("design:type", String)
|
|
44
|
-
],
|
|
73
|
+
], HistoryShortDescriptionDto.prototype, "shortDescription", void 0);
|
|
45
74
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
75
|
+
* Saves the entry's `description` (the full description) in one language, sent with its
|
|
76
|
+
* `language`. `null` clears it.
|
|
48
77
|
*/
|
|
49
|
-
class
|
|
50
|
-
|
|
51
|
-
en;
|
|
52
|
-
mk;
|
|
78
|
+
class HistoryDescriptionDto extends language_dto_1.LanguageDto {
|
|
79
|
+
description;
|
|
53
80
|
constructor(props) {
|
|
81
|
+
super();
|
|
54
82
|
Object.assign(this, props);
|
|
55
83
|
}
|
|
56
84
|
}
|
|
57
|
-
exports.
|
|
85
|
+
exports.HistoryDescriptionDto = HistoryDescriptionDto;
|
|
58
86
|
__decorate([
|
|
59
|
-
(0, class_validator_1.
|
|
60
|
-
(0, class_validator_1.
|
|
61
|
-
(0,
|
|
62
|
-
|
|
63
|
-
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.history.description' }),
|
|
89
|
+
(0, class_validator_1.MaxLength)(10000, { message: 'gnosa.validation.history.description' }),
|
|
90
|
+
(0, common_1.Trim)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], HistoryDescriptionDto.prototype, "description", void 0);
|
|
93
|
+
/**
|
|
94
|
+
* Saves the entry's `seoTitle` in one language, sent with its `language`. `null` clears it.
|
|
95
|
+
*/
|
|
96
|
+
class HistorySeoTitleDto extends language_dto_1.LanguageDto {
|
|
97
|
+
seoTitle;
|
|
98
|
+
constructor(props) {
|
|
99
|
+
super();
|
|
100
|
+
Object.assign(this, props);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.HistorySeoTitleDto = HistorySeoTitleDto;
|
|
64
104
|
__decorate([
|
|
65
|
-
(0, class_validator_1.
|
|
66
|
-
(0, class_validator_1.
|
|
67
|
-
(0,
|
|
68
|
-
|
|
69
|
-
|
|
105
|
+
(0, class_validator_1.IsOptional)(),
|
|
106
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.history.seoTitle' }),
|
|
107
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.history.seoTitle' }),
|
|
108
|
+
(0, common_1.Trim)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], HistorySeoTitleDto.prototype, "seoTitle", void 0);
|
|
111
|
+
/**
|
|
112
|
+
* Saves the entry's `seoDescription` in one language, sent with its `language`. `null` clears it.
|
|
113
|
+
*/
|
|
114
|
+
class HistorySeoDescriptionDto extends language_dto_1.LanguageDto {
|
|
115
|
+
seoDescription;
|
|
116
|
+
constructor(props) {
|
|
117
|
+
super();
|
|
118
|
+
Object.assign(this, props);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.HistorySeoDescriptionDto = HistorySeoDescriptionDto;
|
|
70
122
|
__decorate([
|
|
71
|
-
(0, class_validator_1.
|
|
72
|
-
(0, class_validator_1.
|
|
73
|
-
(0,
|
|
74
|
-
|
|
75
|
-
|
|
123
|
+
(0, class_validator_1.IsOptional)(),
|
|
124
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.history.seoDescription' }),
|
|
125
|
+
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.history.seoDescription' }),
|
|
126
|
+
(0, common_1.Trim)(),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], HistorySeoDescriptionDto.prototype, "seoDescription", void 0);
|
|
76
129
|
/**
|
|
77
|
-
* The
|
|
78
|
-
* required when the entry is created.
|
|
130
|
+
* The search and filter of the admin History List.
|
|
79
131
|
*/
|
|
80
|
-
class
|
|
132
|
+
class HistoryFilterDto {
|
|
81
133
|
/**
|
|
82
|
-
*
|
|
134
|
+
* Matches the title, in any language.
|
|
83
135
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
136
|
+
phrase;
|
|
137
|
+
status;
|
|
86
138
|
constructor(props) {
|
|
87
139
|
Object.assign(this, props);
|
|
88
140
|
}
|
|
89
141
|
}
|
|
90
|
-
exports.
|
|
142
|
+
exports.HistoryFilterDto = HistoryFilterDto;
|
|
91
143
|
__decorate([
|
|
92
|
-
(0, class_validator_1.
|
|
93
|
-
(0,
|
|
94
|
-
|
|
95
|
-
|
|
144
|
+
(0, class_validator_1.IsOptional)(),
|
|
145
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.filter' }),
|
|
146
|
+
(0, common_1.Trim)(),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], HistoryFilterDto.prototype, "phrase", void 0);
|
|
96
149
|
__decorate([
|
|
97
|
-
(0, class_validator_1.
|
|
98
|
-
(0, class_validator_1.
|
|
99
|
-
(
|
|
100
|
-
|
|
101
|
-
], HistoryDto.prototype, "translations", void 0);
|
|
150
|
+
(0, class_validator_1.IsOptional)(),
|
|
151
|
+
(0, class_validator_1.IsEnum)(publish_status_enum_1.PublishStatus, { message: 'gnosa.validation.filter' }),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], HistoryFilterDto.prototype, "status", void 0);
|
|
102
154
|
//# sourceMappingURL=history.dto.js.map
|