@intelact/gnosa 0.1.0 → 0.1.1
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/book/book.dto.d.ts +199 -0
- package/lib/book/book.dto.js +461 -0
- package/lib/book/book.dto.js.map +1 -0
- package/lib/book/book.model.d.ts +90 -0
- package/lib/book/book.model.js +262 -0
- package/lib/book/book.model.js.map +1 -0
- package/lib/discover/discover.dto.d.ts +38 -0
- package/lib/discover/discover.dto.js +99 -0
- package/lib/discover/discover.dto.js.map +1 -0
- package/lib/discover/discover.model.d.ts +30 -0
- package/lib/discover/discover.model.js +81 -0
- package/lib/discover/discover.model.js.map +1 -0
- package/lib/event/event.dto.d.ts +128 -0
- package/lib/event/event.dto.js +328 -0
- package/lib/event/event.dto.js.map +1 -0
- package/lib/event/event.enum.d.ts +16 -0
- package/lib/event/event.enum.js +22 -0
- package/lib/event/event.enum.js.map +1 -0
- package/lib/event/event.model.d.ts +78 -0
- package/lib/event/event.model.js +216 -0
- package/lib/event/event.model.js.map +1 -0
- package/lib/foundation/history.dto.d.ts +27 -0
- package/lib/foundation/history.dto.js +102 -0
- package/lib/foundation/history.dto.js.map +1 -0
- package/lib/foundation/history.model.d.ts +30 -0
- package/lib/foundation/history.model.js +82 -0
- package/lib/foundation/history.model.js.map +1 -0
- package/lib/foundation/partner.dto.d.ts +22 -0
- package/lib/foundation/partner.dto.js +92 -0
- package/lib/foundation/partner.dto.js.map +1 -0
- package/lib/foundation/partner.model.d.ts +30 -0
- package/lib/foundation/partner.model.js +82 -0
- package/lib/foundation/partner.model.js.map +1 -0
- package/lib/foundation/person.dto.d.ts +31 -0
- package/lib/foundation/person.dto.js +106 -0
- package/lib/foundation/person.dto.js.map +1 -0
- package/lib/foundation/person.model.d.ts +28 -0
- package/lib/foundation/person.model.js +80 -0
- package/lib/foundation/person.model.js.map +1 -0
- package/lib/general/language.dto.d.ts +7 -0
- package/lib/general/language.dto.js +26 -0
- package/lib/general/language.dto.js.map +1 -0
- package/lib/general/sort.dto.d.ts +7 -0
- package/lib/general/sort.dto.js +30 -0
- package/lib/general/sort.dto.js.map +1 -0
- package/lib/general/translations.d.ts +6 -0
- package/lib/general/translations.js +3 -0
- package/lib/general/translations.js.map +1 -0
- package/lib/index.d.ts +20 -0
- package/lib/index.js +20 -0
- package/lib/index.js.map +1 -1
- package/lib/magazine/magazine.dto.d.ts +132 -0
- package/lib/magazine/magazine.dto.js +313 -0
- package/lib/magazine/magazine.dto.js.map +1 -0
- package/lib/magazine/magazine.model.d.ts +88 -0
- package/lib/magazine/magazine.model.js +232 -0
- package/lib/magazine/magazine.model.js.map +1 -0
- package/lib/order/order.dto.d.ts +96 -0
- package/lib/order/order.dto.js +297 -0
- package/lib/order/order.dto.js.map +1 -0
- package/lib/order/order.enum.d.ts +10 -2
- package/lib/order/order.enum.js +12 -3
- package/lib/order/order.enum.js.map +1 -1
- package/lib/order/order.model.d.ts +168 -0
- package/lib/order/order.model.js +427 -0
- package/lib/order/order.model.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/transformers.helper.d.ts +7 -0
- package/lib/utils/transformers.helper.js +24 -0
- package/lib/utils/transformers.helper.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { EventPeriod, EventStatus } from './event.enum';
|
|
2
|
+
import { LanguageDto } from '../general/language.dto';
|
|
3
|
+
import { Language } from '../general/language.enum';
|
|
4
|
+
export declare class EventSpeakerTranslationDto {
|
|
5
|
+
description?: string;
|
|
6
|
+
constructor(props?: Partial<EventSpeakerTranslationDto>);
|
|
7
|
+
}
|
|
8
|
+
export declare class EventSpeakerTranslationsDto {
|
|
9
|
+
sq?: EventSpeakerTranslationDto;
|
|
10
|
+
en?: EventSpeakerTranslationDto;
|
|
11
|
+
mk?: EventSpeakerTranslationDto;
|
|
12
|
+
constructor(props?: Partial<EventSpeakerTranslationsDto>);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A speaker or artist of the event, sent as a multipart form together with the optional `file`
|
|
16
|
+
* image. Saving a speaker replaces its name and descriptions; either may be empty while the event is
|
|
17
|
+
* a Draft, and publishing requires both.
|
|
18
|
+
*/
|
|
19
|
+
export declare class EventSpeakerDto {
|
|
20
|
+
name?: string;
|
|
21
|
+
translations?: EventSpeakerTranslationsDto;
|
|
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;
|
|
27
|
+
constructor(props?: Partial<EventSpeakerDto>);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Saves the event's `startDate`. `null` clears it.
|
|
31
|
+
*
|
|
32
|
+
* In UTC, as an ISO 8601 date and time.
|
|
33
|
+
*/
|
|
34
|
+
export declare class EventStartDateDto {
|
|
35
|
+
startDate?: Date;
|
|
36
|
+
constructor(props?: Partial<EventStartDateDto>);
|
|
37
|
+
}
|
|
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
|
+
/**
|
|
48
|
+
* Saves the event's `languages`. `null` clears it.
|
|
49
|
+
*
|
|
50
|
+
* The languages the event is held in. They replace the current ones.
|
|
51
|
+
*/
|
|
52
|
+
export declare class EventLanguagesDto {
|
|
53
|
+
languages?: Language[];
|
|
54
|
+
constructor(props?: Partial<EventLanguagesDto>);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Saves the event's `title` in one language, sent with its `language`. `null` clears it.
|
|
58
|
+
*
|
|
59
|
+
* A new Albanian title gives the event a new slug.
|
|
60
|
+
*/
|
|
61
|
+
export declare class EventTitleDto extends LanguageDto {
|
|
62
|
+
title?: string;
|
|
63
|
+
constructor(props?: Partial<EventTitleDto>);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Saves the event's `shortDescription` in one language, sent with its `language`. `null` clears it.
|
|
67
|
+
*/
|
|
68
|
+
export declare class EventShortDescriptionDto extends LanguageDto {
|
|
69
|
+
shortDescription?: string;
|
|
70
|
+
constructor(props?: Partial<EventShortDescriptionDto>);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Saves the event's `description` in one language, sent with its `language`. `null` clears it.
|
|
74
|
+
*/
|
|
75
|
+
export declare class EventDescriptionDto extends LanguageDto {
|
|
76
|
+
description?: string;
|
|
77
|
+
constructor(props?: Partial<EventDescriptionDto>);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Saves the event's `locationName` in one language, sent with its `language`. `null` clears it.
|
|
81
|
+
*/
|
|
82
|
+
export declare class EventLocationNameDto extends LanguageDto {
|
|
83
|
+
locationName?: string;
|
|
84
|
+
constructor(props?: Partial<EventLocationNameDto>);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Saves the event's `locationAddress` in one language, sent with its `language`. `null` clears it.
|
|
88
|
+
*/
|
|
89
|
+
export declare class EventLocationAddressDto extends LanguageDto {
|
|
90
|
+
locationAddress?: string;
|
|
91
|
+
constructor(props?: Partial<EventLocationAddressDto>);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Saves the event's `seoTitle` in one language, sent with its `language`. `null` clears it.
|
|
95
|
+
*/
|
|
96
|
+
export declare class EventSeoTitleDto extends LanguageDto {
|
|
97
|
+
seoTitle?: string;
|
|
98
|
+
constructor(props?: Partial<EventSeoTitleDto>);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Saves the event's `seoDescription` in one language, sent with its `language`. `null` clears it.
|
|
102
|
+
*/
|
|
103
|
+
export declare class EventSeoDescriptionDto extends LanguageDto {
|
|
104
|
+
seoDescription?: string;
|
|
105
|
+
constructor(props?: Partial<EventSeoDescriptionDto>);
|
|
106
|
+
}
|
|
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
|
+
/**
|
|
118
|
+
* The search and filters of the admin Events List.
|
|
119
|
+
*/
|
|
120
|
+
export declare class EventFilterDto {
|
|
121
|
+
/**
|
|
122
|
+
* Matches the title and the location, in any language.
|
|
123
|
+
*/
|
|
124
|
+
phrase?: string;
|
|
125
|
+
status?: EventStatus;
|
|
126
|
+
period?: EventPeriod;
|
|
127
|
+
constructor(props?: Partial<EventFilterDto>);
|
|
128
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EventFilterDto = exports.EventCatalogueFilterDto = exports.EventSeoDescriptionDto = exports.EventSeoTitleDto = exports.EventLocationAddressDto = exports.EventLocationNameDto = exports.EventDescriptionDto = exports.EventShortDescriptionDto = exports.EventTitleDto = exports.EventLanguagesDto = exports.EventTimezoneDto = exports.EventStartDateDto = exports.EventSpeakerDto = exports.EventSpeakerTranslationsDto = exports.EventSpeakerTranslationDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const common_1 = require("@intelact/common");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
17
|
+
const event_enum_1 = require("./event.enum");
|
|
18
|
+
const language_dto_1 = require("../general/language.dto");
|
|
19
|
+
const language_enum_1 = require("../general/language.enum");
|
|
20
|
+
class EventSpeakerTranslationDto {
|
|
21
|
+
description;
|
|
22
|
+
constructor(props) {
|
|
23
|
+
Object.assign(this, props);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.EventSpeakerTranslationDto = EventSpeakerTranslationDto;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.speakerDescription' }),
|
|
30
|
+
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.event.speakerDescription' }),
|
|
31
|
+
(0, common_1.Trim)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], EventSpeakerTranslationDto.prototype, "description", void 0);
|
|
34
|
+
class EventSpeakerTranslationsDto {
|
|
35
|
+
sq;
|
|
36
|
+
en;
|
|
37
|
+
mk;
|
|
38
|
+
constructor(props) {
|
|
39
|
+
Object.assign(this, props);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.EventSpeakerTranslationsDto = EventSpeakerTranslationsDto;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.ValidateNested)(),
|
|
46
|
+
(0, class_transformer_1.Type)(() => EventSpeakerTranslationDto),
|
|
47
|
+
__metadata("design:type", EventSpeakerTranslationDto)
|
|
48
|
+
], EventSpeakerTranslationsDto.prototype, "sq", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.ValidateNested)(),
|
|
52
|
+
(0, class_transformer_1.Type)(() => EventSpeakerTranslationDto),
|
|
53
|
+
__metadata("design:type", EventSpeakerTranslationDto)
|
|
54
|
+
], EventSpeakerTranslationsDto.prototype, "en", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.ValidateNested)(),
|
|
58
|
+
(0, class_transformer_1.Type)(() => EventSpeakerTranslationDto),
|
|
59
|
+
__metadata("design:type", EventSpeakerTranslationDto)
|
|
60
|
+
], EventSpeakerTranslationsDto.prototype, "mk", void 0);
|
|
61
|
+
/**
|
|
62
|
+
* A speaker or artist of the event, sent as a multipart form together with the optional `file`
|
|
63
|
+
* image. Saving a speaker replaces its name and descriptions; either may be empty while the event is
|
|
64
|
+
* a Draft, and publishing requires both.
|
|
65
|
+
*/
|
|
66
|
+
class EventSpeakerDto {
|
|
67
|
+
name;
|
|
68
|
+
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
|
+
constructor(props) {
|
|
75
|
+
Object.assign(this, props);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.EventSpeakerDto = EventSpeakerDto;
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.speakerName' }),
|
|
82
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.event.speakerName' }),
|
|
83
|
+
(0, common_1.Trim)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], EventSpeakerDto.prototype, "name", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.ValidateNested)(),
|
|
89
|
+
(0, class_transformer_1.Type)(() => EventSpeakerTranslationsDto),
|
|
90
|
+
__metadata("design:type", EventSpeakerTranslationsDto)
|
|
91
|
+
], 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
|
+
/**
|
|
99
|
+
* Saves the event's `startDate`. `null` clears it.
|
|
100
|
+
*
|
|
101
|
+
* In UTC, as an ISO 8601 date and time.
|
|
102
|
+
*/
|
|
103
|
+
class EventStartDateDto {
|
|
104
|
+
startDate;
|
|
105
|
+
constructor(props) {
|
|
106
|
+
Object.assign(this, props);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.EventStartDateDto = EventStartDateDto;
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, class_validator_1.IsOptional)(),
|
|
112
|
+
(0, class_validator_1.IsDate)({ message: 'gnosa.validation.date.invalid' }),
|
|
113
|
+
(0, transformers_helper_1.ToUtcDate)(),
|
|
114
|
+
__metadata("design:type", Date)
|
|
115
|
+
], 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
|
+
/**
|
|
134
|
+
* Saves the event's `languages`. `null` clears it.
|
|
135
|
+
*
|
|
136
|
+
* The languages the event is held in. They replace the current ones.
|
|
137
|
+
*/
|
|
138
|
+
class EventLanguagesDto {
|
|
139
|
+
languages;
|
|
140
|
+
constructor(props) {
|
|
141
|
+
Object.assign(this, props);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.EventLanguagesDto = EventLanguagesDto;
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_validator_1.IsOptional)(),
|
|
147
|
+
(0, class_validator_1.IsArray)({ message: 'gnosa.validation.event.languages' }),
|
|
148
|
+
(0, class_validator_1.IsEnum)(language_enum_1.Language, { each: true, message: 'gnosa.validation.event.languages' }),
|
|
149
|
+
__metadata("design:type", Array)
|
|
150
|
+
], EventLanguagesDto.prototype, "languages", void 0);
|
|
151
|
+
/**
|
|
152
|
+
* Saves the event's `title` in one language, sent with its `language`. `null` clears it.
|
|
153
|
+
*
|
|
154
|
+
* A new Albanian title gives the event a new slug.
|
|
155
|
+
*/
|
|
156
|
+
class EventTitleDto extends language_dto_1.LanguageDto {
|
|
157
|
+
title;
|
|
158
|
+
constructor(props) {
|
|
159
|
+
super();
|
|
160
|
+
Object.assign(this, props);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
exports.EventTitleDto = EventTitleDto;
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, class_validator_1.IsOptional)(),
|
|
166
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.title' }),
|
|
167
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.event.title' }),
|
|
168
|
+
(0, common_1.Trim)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], EventTitleDto.prototype, "title", void 0);
|
|
171
|
+
/**
|
|
172
|
+
* Saves the event's `shortDescription` in one language, sent with its `language`. `null` clears it.
|
|
173
|
+
*/
|
|
174
|
+
class EventShortDescriptionDto extends language_dto_1.LanguageDto {
|
|
175
|
+
shortDescription;
|
|
176
|
+
constructor(props) {
|
|
177
|
+
super();
|
|
178
|
+
Object.assign(this, props);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.EventShortDescriptionDto = EventShortDescriptionDto;
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, class_validator_1.IsOptional)(),
|
|
184
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.shortDescription' }),
|
|
185
|
+
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.event.shortDescription' }),
|
|
186
|
+
(0, common_1.Trim)(),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], EventShortDescriptionDto.prototype, "shortDescription", void 0);
|
|
189
|
+
/**
|
|
190
|
+
* Saves the event's `description` in one language, sent with its `language`. `null` clears it.
|
|
191
|
+
*/
|
|
192
|
+
class EventDescriptionDto extends language_dto_1.LanguageDto {
|
|
193
|
+
description;
|
|
194
|
+
constructor(props) {
|
|
195
|
+
super();
|
|
196
|
+
Object.assign(this, props);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.EventDescriptionDto = EventDescriptionDto;
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, class_validator_1.IsOptional)(),
|
|
202
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.description' }),
|
|
203
|
+
(0, class_validator_1.MaxLength)(50000, { message: 'gnosa.validation.event.description' }),
|
|
204
|
+
(0, common_1.Trim)(),
|
|
205
|
+
__metadata("design:type", String)
|
|
206
|
+
], EventDescriptionDto.prototype, "description", void 0);
|
|
207
|
+
/**
|
|
208
|
+
* Saves the event's `locationName` in one language, sent with its `language`. `null` clears it.
|
|
209
|
+
*/
|
|
210
|
+
class EventLocationNameDto extends language_dto_1.LanguageDto {
|
|
211
|
+
locationName;
|
|
212
|
+
constructor(props) {
|
|
213
|
+
super();
|
|
214
|
+
Object.assign(this, props);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
exports.EventLocationNameDto = EventLocationNameDto;
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, class_validator_1.IsOptional)(),
|
|
220
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.locationName' }),
|
|
221
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.event.locationName' }),
|
|
222
|
+
(0, common_1.Trim)(),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], EventLocationNameDto.prototype, "locationName", void 0);
|
|
225
|
+
/**
|
|
226
|
+
* Saves the event's `locationAddress` in one language, sent with its `language`. `null` clears it.
|
|
227
|
+
*/
|
|
228
|
+
class EventLocationAddressDto extends language_dto_1.LanguageDto {
|
|
229
|
+
locationAddress;
|
|
230
|
+
constructor(props) {
|
|
231
|
+
super();
|
|
232
|
+
Object.assign(this, props);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
exports.EventLocationAddressDto = EventLocationAddressDto;
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, class_validator_1.IsOptional)(),
|
|
238
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.locationAddress' }),
|
|
239
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.event.locationAddress' }),
|
|
240
|
+
(0, common_1.Trim)(),
|
|
241
|
+
__metadata("design:type", String)
|
|
242
|
+
], EventLocationAddressDto.prototype, "locationAddress", void 0);
|
|
243
|
+
/**
|
|
244
|
+
* Saves the event's `seoTitle` in one language, sent with its `language`. `null` clears it.
|
|
245
|
+
*/
|
|
246
|
+
class EventSeoTitleDto extends language_dto_1.LanguageDto {
|
|
247
|
+
seoTitle;
|
|
248
|
+
constructor(props) {
|
|
249
|
+
super();
|
|
250
|
+
Object.assign(this, props);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
exports.EventSeoTitleDto = EventSeoTitleDto;
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, class_validator_1.IsOptional)(),
|
|
256
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.seoTitle' }),
|
|
257
|
+
(0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.event.seoTitle' }),
|
|
258
|
+
(0, common_1.Trim)(),
|
|
259
|
+
__metadata("design:type", String)
|
|
260
|
+
], EventSeoTitleDto.prototype, "seoTitle", void 0);
|
|
261
|
+
/**
|
|
262
|
+
* Saves the event's `seoDescription` in one language, sent with its `language`. `null` clears it.
|
|
263
|
+
*/
|
|
264
|
+
class EventSeoDescriptionDto extends language_dto_1.LanguageDto {
|
|
265
|
+
seoDescription;
|
|
266
|
+
constructor(props) {
|
|
267
|
+
super();
|
|
268
|
+
Object.assign(this, props);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
exports.EventSeoDescriptionDto = EventSeoDescriptionDto;
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, class_validator_1.IsOptional)(),
|
|
274
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.event.seoDescription' }),
|
|
275
|
+
(0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.event.seoDescription' }),
|
|
276
|
+
(0, common_1.Trim)(),
|
|
277
|
+
__metadata("design:type", String)
|
|
278
|
+
], 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
|
+
/**
|
|
298
|
+
* The search and filters of the admin Events List.
|
|
299
|
+
*/
|
|
300
|
+
class EventFilterDto {
|
|
301
|
+
/**
|
|
302
|
+
* Matches the title and the location, in any language.
|
|
303
|
+
*/
|
|
304
|
+
phrase;
|
|
305
|
+
status;
|
|
306
|
+
period;
|
|
307
|
+
constructor(props) {
|
|
308
|
+
Object.assign(this, props);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
exports.EventFilterDto = EventFilterDto;
|
|
312
|
+
__decorate([
|
|
313
|
+
(0, class_validator_1.IsOptional)(),
|
|
314
|
+
(0, class_validator_1.IsString)({ message: 'gnosa.validation.filter' }),
|
|
315
|
+
(0, common_1.Trim)(),
|
|
316
|
+
__metadata("design:type", String)
|
|
317
|
+
], EventFilterDto.prototype, "phrase", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
(0, class_validator_1.IsOptional)(),
|
|
320
|
+
(0, class_validator_1.IsEnum)(event_enum_1.EventStatus, { message: 'gnosa.validation.filter' }),
|
|
321
|
+
__metadata("design:type", String)
|
|
322
|
+
], EventFilterDto.prototype, "status", void 0);
|
|
323
|
+
__decorate([
|
|
324
|
+
(0, class_validator_1.IsOptional)(),
|
|
325
|
+
(0, class_validator_1.IsEnum)(event_enum_1.EventPeriod, { message: 'gnosa.validation.filter' }),
|
|
326
|
+
__metadata("design:type", String)
|
|
327
|
+
], EventFilterDto.prototype, "period", void 0);
|
|
328
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AAM,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The lifecycle of an event. A Canceled event stays on the website, marked as canceled, until it
|
|
3
|
+
* is unpublished.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum EventStatus {
|
|
6
|
+
Draft = "draft",
|
|
7
|
+
Published = "published",
|
|
8
|
+
Canceled = "canceled"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Whether an event starts in the future or started in the past.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum EventPeriod {
|
|
14
|
+
Upcoming = "upcoming",
|
|
15
|
+
Past = "past"
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventPeriod = exports.EventStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The lifecycle of an event. A Canceled event stays on the website, marked as canceled, until it
|
|
6
|
+
* is unpublished.
|
|
7
|
+
*/
|
|
8
|
+
var EventStatus;
|
|
9
|
+
(function (EventStatus) {
|
|
10
|
+
EventStatus["Draft"] = "draft";
|
|
11
|
+
EventStatus["Published"] = "published";
|
|
12
|
+
EventStatus["Canceled"] = "canceled";
|
|
13
|
+
})(EventStatus || (exports.EventStatus = EventStatus = {}));
|
|
14
|
+
/**
|
|
15
|
+
* Whether an event starts in the future or started in the past.
|
|
16
|
+
*/
|
|
17
|
+
var EventPeriod;
|
|
18
|
+
(function (EventPeriod) {
|
|
19
|
+
EventPeriod["Upcoming"] = "upcoming";
|
|
20
|
+
EventPeriod["Past"] = "past";
|
|
21
|
+
})(EventPeriod || (exports.EventPeriod = EventPeriod = {}));
|
|
22
|
+
//# sourceMappingURL=event.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.enum.js","sourceRoot":"","sources":["../../src/event/event.enum.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;AACtB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED;;GAEG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,oCAAqB,CAAA;IACrB,4BAAa,CAAA;AACd,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Translations } from '../general/translations';
|
|
2
|
+
import { Language } from '../general/language.enum';
|
|
3
|
+
import { EventStatus } from './event.enum';
|
|
4
|
+
export declare class EventSpeakerTranslation {
|
|
5
|
+
description: string;
|
|
6
|
+
constructor(props?: Partial<EventSpeakerTranslation>);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A speaker or artist of an event.
|
|
10
|
+
*/
|
|
11
|
+
export declare class EventSpeaker {
|
|
12
|
+
/**
|
|
13
|
+
* Sent back when the event is saved, so the speaker keeps its image (the editor).
|
|
14
|
+
*/
|
|
15
|
+
slug?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
imageUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* The short description in the app language (the public page).
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The short description in every language (the editor).
|
|
24
|
+
*/
|
|
25
|
+
translations?: Translations<EventSpeakerTranslation>;
|
|
26
|
+
constructor(props?: Partial<EventSpeaker>);
|
|
27
|
+
}
|
|
28
|
+
export declare class EventTranslation {
|
|
29
|
+
title: string;
|
|
30
|
+
shortDescription: string;
|
|
31
|
+
description: string;
|
|
32
|
+
locationName: string;
|
|
33
|
+
locationAddress: string;
|
|
34
|
+
seoTitle: string;
|
|
35
|
+
seoDescription: string;
|
|
36
|
+
constructor(props?: Partial<EventTranslation>);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A Gnosa event. Lists carry the fields a row or a card shows with the title and location in the
|
|
40
|
+
* app language, the public page adds the descriptions and the speakers, and the editor carries every
|
|
41
|
+
* field with the localized ones in all three languages.
|
|
42
|
+
*/
|
|
43
|
+
export declare class Event {
|
|
44
|
+
slug: string;
|
|
45
|
+
status: EventStatus;
|
|
46
|
+
imageUrl: string;
|
|
47
|
+
/**
|
|
48
|
+
* In UTC.
|
|
49
|
+
*/
|
|
50
|
+
startDate: Date;
|
|
51
|
+
/**
|
|
52
|
+
* The IANA time zone the event takes place in.
|
|
53
|
+
*/
|
|
54
|
+
timezone: string;
|
|
55
|
+
/**
|
|
56
|
+
* The languages the event is held in.
|
|
57
|
+
*/
|
|
58
|
+
languages: Language[];
|
|
59
|
+
/**
|
|
60
|
+
* The localized fields in the app language (lists and the public page).
|
|
61
|
+
*/
|
|
62
|
+
title?: string;
|
|
63
|
+
locationName?: string;
|
|
64
|
+
locationAddress?: string;
|
|
65
|
+
shortDescription?: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
seoTitle?: string;
|
|
68
|
+
seoDescription?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The speakers or artists in their order (the public page and the editor).
|
|
71
|
+
*/
|
|
72
|
+
speakers?: EventSpeaker[];
|
|
73
|
+
/**
|
|
74
|
+
* The localized fields in every language (the editor).
|
|
75
|
+
*/
|
|
76
|
+
translations?: Translations<EventTranslation>;
|
|
77
|
+
constructor(props?: Partial<Event>);
|
|
78
|
+
}
|