@intelact/gnosa 0.1.0 → 0.1.2

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.
Files changed (71) hide show
  1. package/lib/book/book.dto.d.ts +199 -0
  2. package/lib/book/book.dto.js +463 -0
  3. package/lib/book/book.dto.js.map +1 -0
  4. package/lib/book/book.model.d.ts +90 -0
  5. package/lib/book/book.model.js +262 -0
  6. package/lib/book/book.model.js.map +1 -0
  7. package/lib/discover/discover.dto.d.ts +38 -0
  8. package/lib/discover/discover.dto.js +99 -0
  9. package/lib/discover/discover.dto.js.map +1 -0
  10. package/lib/discover/discover.model.d.ts +30 -0
  11. package/lib/discover/discover.model.js +81 -0
  12. package/lib/discover/discover.model.js.map +1 -0
  13. package/lib/event/event.dto.d.ts +128 -0
  14. package/lib/event/event.dto.js +328 -0
  15. package/lib/event/event.dto.js.map +1 -0
  16. package/lib/event/event.enum.d.ts +16 -0
  17. package/lib/event/event.enum.js +22 -0
  18. package/lib/event/event.enum.js.map +1 -0
  19. package/lib/event/event.model.d.ts +78 -0
  20. package/lib/event/event.model.js +216 -0
  21. package/lib/event/event.model.js.map +1 -0
  22. package/lib/foundation/history.dto.d.ts +27 -0
  23. package/lib/foundation/history.dto.js +102 -0
  24. package/lib/foundation/history.dto.js.map +1 -0
  25. package/lib/foundation/history.model.d.ts +30 -0
  26. package/lib/foundation/history.model.js +82 -0
  27. package/lib/foundation/history.model.js.map +1 -0
  28. package/lib/foundation/partner.dto.d.ts +22 -0
  29. package/lib/foundation/partner.dto.js +92 -0
  30. package/lib/foundation/partner.dto.js.map +1 -0
  31. package/lib/foundation/partner.model.d.ts +30 -0
  32. package/lib/foundation/partner.model.js +82 -0
  33. package/lib/foundation/partner.model.js.map +1 -0
  34. package/lib/foundation/person.dto.d.ts +31 -0
  35. package/lib/foundation/person.dto.js +106 -0
  36. package/lib/foundation/person.dto.js.map +1 -0
  37. package/lib/foundation/person.model.d.ts +28 -0
  38. package/lib/foundation/person.model.js +80 -0
  39. package/lib/foundation/person.model.js.map +1 -0
  40. package/lib/general/language.dto.d.ts +7 -0
  41. package/lib/general/language.dto.js +26 -0
  42. package/lib/general/language.dto.js.map +1 -0
  43. package/lib/general/sort.dto.d.ts +7 -0
  44. package/lib/general/sort.dto.js +30 -0
  45. package/lib/general/sort.dto.js.map +1 -0
  46. package/lib/general/translations.d.ts +6 -0
  47. package/lib/general/translations.js +3 -0
  48. package/lib/general/translations.js.map +1 -0
  49. package/lib/index.d.ts +20 -0
  50. package/lib/index.js +20 -0
  51. package/lib/index.js.map +1 -1
  52. package/lib/magazine/magazine.dto.d.ts +132 -0
  53. package/lib/magazine/magazine.dto.js +314 -0
  54. package/lib/magazine/magazine.dto.js.map +1 -0
  55. package/lib/magazine/magazine.model.d.ts +88 -0
  56. package/lib/magazine/magazine.model.js +232 -0
  57. package/lib/magazine/magazine.model.js.map +1 -0
  58. package/lib/order/order.dto.d.ts +96 -0
  59. package/lib/order/order.dto.js +299 -0
  60. package/lib/order/order.dto.js.map +1 -0
  61. package/lib/order/order.enum.d.ts +10 -2
  62. package/lib/order/order.enum.js +12 -3
  63. package/lib/order/order.enum.js.map +1 -1
  64. package/lib/order/order.model.d.ts +168 -0
  65. package/lib/order/order.model.js +427 -0
  66. package/lib/order/order.model.js.map +1 -0
  67. package/lib/tsconfig.tsbuildinfo +1 -1
  68. package/lib/utils/transformers.helper.d.ts +13 -0
  69. package/lib/utils/transformers.helper.js +33 -0
  70. package/lib/utils/transformers.helper.js.map +1 -1
  71. package/package.json +1 -1
@@ -0,0 +1,199 @@
1
+ import { PublishStatus } from '../general/publish-status.enum';
2
+ import { LanguageDto } from '../general/language.dto';
3
+ import { Language } from '../general/language.enum';
4
+ /**
5
+ * Saves the book's `title`. `null` clears it.
6
+ *
7
+ * The one title of the book, in its original language, never translated. A new title gives the book a new slug.
8
+ */
9
+ export declare class BookTitleDto {
10
+ title?: string;
11
+ constructor(props?: Partial<BookTitleDto>);
12
+ }
13
+ /**
14
+ * Saves the book's `originalLanguage`. `null` clears it.
15
+ *
16
+ * The language the book was written in, which its title is in.
17
+ */
18
+ export declare class BookOriginalLanguageDto {
19
+ originalLanguage?: Language;
20
+ constructor(props?: Partial<BookOriginalLanguageDto>);
21
+ }
22
+ /**
23
+ * Saves the book's `authors`. `null` clears it.
24
+ *
25
+ * Every author in one text, as it is displayed (`Ismail Kadare, Helena Kadare`).
26
+ */
27
+ export declare class BookAuthorsDto {
28
+ authors?: string;
29
+ constructor(props?: Partial<BookAuthorsDto>);
30
+ }
31
+ /**
32
+ * Saves the book's `translator`. `null` clears it.
33
+ */
34
+ export declare class BookTranslatorDto {
35
+ translator?: string;
36
+ constructor(props?: Partial<BookTranslatorDto>);
37
+ }
38
+ /**
39
+ * Saves the book's `editor`. `null` clears it.
40
+ */
41
+ export declare class BookEditorDto {
42
+ editor?: string;
43
+ constructor(props?: Partial<BookEditorDto>);
44
+ }
45
+ /**
46
+ * Saves the book's `publisher`. `null` clears it.
47
+ */
48
+ export declare class BookPublisherDto {
49
+ publisher?: string;
50
+ constructor(props?: Partial<BookPublisherDto>);
51
+ }
52
+ /**
53
+ * Saves the book's `isbn`. `null` clears it.
54
+ *
55
+ * An ISBN-10 or ISBN-13, with or without hyphens, stored as it was entered.
56
+ */
57
+ export declare class BookIsbnDto {
58
+ isbn?: string;
59
+ constructor(props?: Partial<BookIsbnDto>);
60
+ }
61
+ /**
62
+ * Saves the book's `publicationDate`. `null` clears it.
63
+ *
64
+ * In UTC, as an ISO 8601 date.
65
+ */
66
+ export declare class BookPublicationDateDto {
67
+ publicationDate?: Date;
68
+ constructor(props?: Partial<BookPublicationDateDto>);
69
+ }
70
+ /**
71
+ * Saves the book's `categories`. `null` clears it.
72
+ *
73
+ * The slugs of the book's categories, from the predefined list. They replace the current ones.
74
+ */
75
+ export declare class BookCategoriesDto {
76
+ categories?: string[];
77
+ constructor(props?: Partial<BookCategoriesDto>);
78
+ }
79
+ /**
80
+ * Saves the book's `pageCount`. `null` clears it.
81
+ */
82
+ export declare class BookPageCountDto {
83
+ pageCount?: number;
84
+ constructor(props?: Partial<BookPageCountDto>);
85
+ }
86
+ /**
87
+ * Saves the book's `format`. `null` clears it.
88
+ */
89
+ export declare class BookFormatDto {
90
+ format?: string;
91
+ constructor(props?: Partial<BookFormatDto>);
92
+ }
93
+ /**
94
+ * Saves the book's `binding`. `null` clears it.
95
+ */
96
+ export declare class BookBindingDto {
97
+ binding?: string;
98
+ constructor(props?: Partial<BookBindingDto>);
99
+ }
100
+ /**
101
+ * Saves the book's `dimensions`. `null` clears it.
102
+ */
103
+ export declare class BookDimensionsDto {
104
+ dimensions?: string;
105
+ constructor(props?: Partial<BookDimensionsDto>);
106
+ }
107
+ /**
108
+ * Saves the book's `priceEur`. `null` clears it.
109
+ *
110
+ * VAT-inclusive price in euros.
111
+ */
112
+ export declare class BookPriceEurDto {
113
+ priceEur?: number;
114
+ constructor(props?: Partial<BookPriceEurDto>);
115
+ }
116
+ /**
117
+ * Saves the book's `priceMkd`. `null` clears it.
118
+ *
119
+ * VAT-inclusive price in Macedonian denars, entered separately rather than converted.
120
+ */
121
+ export declare class BookPriceMkdDto {
122
+ priceMkd?: number;
123
+ constructor(props?: Partial<BookPriceMkdDto>);
124
+ }
125
+ /**
126
+ * Saves the book's `isAvailable`. `null` clears it.
127
+ *
128
+ * Whether the physical book can be ordered. Independent of the PDF.
129
+ */
130
+ export declare class BookIsAvailableDto {
131
+ isAvailable?: boolean;
132
+ constructor(props?: Partial<BookIsAvailableDto>);
133
+ }
134
+ /**
135
+ * Saves the book's `shortDescription` in one language, sent with its `language`. `null` clears it.
136
+ */
137
+ export declare class BookShortDescriptionDto extends LanguageDto {
138
+ shortDescription?: string;
139
+ constructor(props?: Partial<BookShortDescriptionDto>);
140
+ }
141
+ /**
142
+ * Saves the book's `description` in one language, sent with its `language`. `null` clears it.
143
+ */
144
+ export declare class BookDescriptionDto extends LanguageDto {
145
+ description?: string;
146
+ constructor(props?: Partial<BookDescriptionDto>);
147
+ }
148
+ /**
149
+ * Saves the book's `seoTitle` in one language, sent with its `language`. `null` clears it.
150
+ */
151
+ export declare class BookSeoTitleDto extends LanguageDto {
152
+ seoTitle?: string;
153
+ constructor(props?: Partial<BookSeoTitleDto>);
154
+ }
155
+ /**
156
+ * Saves the book's `seoDescription` in one language, sent with its `language`. `null` clears it.
157
+ */
158
+ export declare class BookSeoDescriptionDto extends LanguageDto {
159
+ seoDescription?: string;
160
+ constructor(props?: Partial<BookSeoDescriptionDto>);
161
+ }
162
+ /**
163
+ * Whether a book is in the Featured Books tab and on the Home page. It can change whatever the
164
+ * book's status is.
165
+ */
166
+ export declare class BookFeaturedDto {
167
+ isFeatured: boolean;
168
+ constructor(props?: Partial<BookFeaturedDto>);
169
+ }
170
+ /**
171
+ * The filters of the public Books Catalogue.
172
+ */
173
+ export declare class BookCatalogueFilterDto {
174
+ /**
175
+ * Matches the title and the authors.
176
+ */
177
+ phrase?: string;
178
+ /**
179
+ * The slug of a category.
180
+ */
181
+ category?: string;
182
+ constructor(props?: Partial<BookCatalogueFilterDto>);
183
+ }
184
+ /**
185
+ * The search and filters of the admin Books List.
186
+ */
187
+ export declare class BookFilterDto extends BookCatalogueFilterDto {
188
+ status?: PublishStatus;
189
+ /**
190
+ * Whether the physical book can be ordered.
191
+ */
192
+ isAvailable?: boolean;
193
+ /**
194
+ * Whether the book has a PDF.
195
+ */
196
+ hasPdf?: boolean;
197
+ isFeatured?: boolean;
198
+ constructor(props?: Partial<BookFilterDto>);
199
+ }
@@ -0,0 +1,463 @@
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.BookFilterDto = exports.BookCatalogueFilterDto = exports.BookFeaturedDto = exports.BookSeoDescriptionDto = exports.BookSeoTitleDto = exports.BookDescriptionDto = exports.BookShortDescriptionDto = exports.BookIsAvailableDto = exports.BookPriceMkdDto = exports.BookPriceEurDto = exports.BookDimensionsDto = exports.BookBindingDto = exports.BookFormatDto = exports.BookPageCountDto = exports.BookCategoriesDto = exports.BookPublicationDateDto = exports.BookIsbnDto = exports.BookPublisherDto = exports.BookEditorDto = exports.BookTranslatorDto = exports.BookAuthorsDto = exports.BookOriginalLanguageDto = exports.BookTitleDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const common_1 = require("@intelact/common");
15
+ const transformers_helper_1 = require("../utils/transformers.helper");
16
+ const publish_status_enum_1 = require("../general/publish-status.enum");
17
+ const language_dto_1 = require("../general/language.dto");
18
+ const language_enum_1 = require("../general/language.enum");
19
+ /**
20
+ * Saves the book's `title`. `null` clears it.
21
+ *
22
+ * The one title of the book, in its original language, never translated. A new title gives the book a new slug.
23
+ */
24
+ class BookTitleDto {
25
+ title;
26
+ constructor(props) {
27
+ Object.assign(this, props);
28
+ }
29
+ }
30
+ exports.BookTitleDto = BookTitleDto;
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.title' }),
34
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.title' }),
35
+ (0, common_1.Trim)(),
36
+ __metadata("design:type", String)
37
+ ], BookTitleDto.prototype, "title", void 0);
38
+ /**
39
+ * Saves the book's `originalLanguage`. `null` clears it.
40
+ *
41
+ * The language the book was written in, which its title is in.
42
+ */
43
+ class BookOriginalLanguageDto {
44
+ originalLanguage;
45
+ constructor(props) {
46
+ Object.assign(this, props);
47
+ }
48
+ }
49
+ exports.BookOriginalLanguageDto = BookOriginalLanguageDto;
50
+ __decorate([
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_validator_1.IsEnum)(language_enum_1.Language, { message: 'gnosa.validation.book.originalLanguage' }),
53
+ __metadata("design:type", String)
54
+ ], BookOriginalLanguageDto.prototype, "originalLanguage", void 0);
55
+ /**
56
+ * Saves the book's `authors`. `null` clears it.
57
+ *
58
+ * Every author in one text, as it is displayed (`Ismail Kadare, Helena Kadare`).
59
+ */
60
+ class BookAuthorsDto {
61
+ authors;
62
+ constructor(props) {
63
+ Object.assign(this, props);
64
+ }
65
+ }
66
+ exports.BookAuthorsDto = BookAuthorsDto;
67
+ __decorate([
68
+ (0, class_validator_1.IsOptional)(),
69
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.authors' }),
70
+ (0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.book.authors' }),
71
+ (0, common_1.Trim)(),
72
+ __metadata("design:type", String)
73
+ ], BookAuthorsDto.prototype, "authors", void 0);
74
+ /**
75
+ * Saves the book's `translator`. `null` clears it.
76
+ */
77
+ class BookTranslatorDto {
78
+ translator;
79
+ constructor(props) {
80
+ Object.assign(this, props);
81
+ }
82
+ }
83
+ exports.BookTranslatorDto = BookTranslatorDto;
84
+ __decorate([
85
+ (0, class_validator_1.IsOptional)(),
86
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.translator' }),
87
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.translator' }),
88
+ (0, common_1.Trim)(),
89
+ __metadata("design:type", String)
90
+ ], BookTranslatorDto.prototype, "translator", void 0);
91
+ /**
92
+ * Saves the book's `editor`. `null` clears it.
93
+ */
94
+ class BookEditorDto {
95
+ editor;
96
+ constructor(props) {
97
+ Object.assign(this, props);
98
+ }
99
+ }
100
+ exports.BookEditorDto = BookEditorDto;
101
+ __decorate([
102
+ (0, class_validator_1.IsOptional)(),
103
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.editor' }),
104
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.editor' }),
105
+ (0, common_1.Trim)(),
106
+ __metadata("design:type", String)
107
+ ], BookEditorDto.prototype, "editor", void 0);
108
+ /**
109
+ * Saves the book's `publisher`. `null` clears it.
110
+ */
111
+ class BookPublisherDto {
112
+ publisher;
113
+ constructor(props) {
114
+ Object.assign(this, props);
115
+ }
116
+ }
117
+ exports.BookPublisherDto = BookPublisherDto;
118
+ __decorate([
119
+ (0, class_validator_1.IsOptional)(),
120
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.publisher' }),
121
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.publisher' }),
122
+ (0, common_1.Trim)(),
123
+ __metadata("design:type", String)
124
+ ], BookPublisherDto.prototype, "publisher", void 0);
125
+ /**
126
+ * Saves the book's `isbn`. `null` clears it.
127
+ *
128
+ * An ISBN-10 or ISBN-13, with or without hyphens, stored as it was entered.
129
+ */
130
+ class BookIsbnDto {
131
+ isbn;
132
+ constructor(props) {
133
+ Object.assign(this, props);
134
+ }
135
+ }
136
+ exports.BookIsbnDto = BookIsbnDto;
137
+ __decorate([
138
+ (0, class_validator_1.IsOptional)(),
139
+ (0, class_validator_1.IsISBN)(undefined, { message: 'gnosa.validation.book.isbn' }),
140
+ (0, class_validator_1.MaxLength)(32, { message: 'gnosa.validation.book.isbn' }),
141
+ (0, common_1.Trim)(),
142
+ __metadata("design:type", String)
143
+ ], BookIsbnDto.prototype, "isbn", void 0);
144
+ /**
145
+ * Saves the book's `publicationDate`. `null` clears it.
146
+ *
147
+ * In UTC, as an ISO 8601 date.
148
+ */
149
+ class BookPublicationDateDto {
150
+ publicationDate;
151
+ constructor(props) {
152
+ Object.assign(this, props);
153
+ }
154
+ }
155
+ exports.BookPublicationDateDto = BookPublicationDateDto;
156
+ __decorate([
157
+ (0, class_validator_1.IsOptional)(),
158
+ (0, class_validator_1.IsDate)({ message: 'gnosa.validation.date.invalid' }),
159
+ (0, transformers_helper_1.ToUtcDate)(),
160
+ __metadata("design:type", Date)
161
+ ], BookPublicationDateDto.prototype, "publicationDate", void 0);
162
+ /**
163
+ * Saves the book's `categories`. `null` clears it.
164
+ *
165
+ * The slugs of the book's categories, from the predefined list. They replace the current ones.
166
+ */
167
+ class BookCategoriesDto {
168
+ categories;
169
+ constructor(props) {
170
+ Object.assign(this, props);
171
+ }
172
+ }
173
+ exports.BookCategoriesDto = BookCategoriesDto;
174
+ __decorate([
175
+ (0, class_validator_1.IsOptional)(),
176
+ (0, class_validator_1.IsArray)({ message: 'gnosa.validation.book.categories' }),
177
+ (0, class_validator_1.IsString)({ each: true, message: 'gnosa.validation.book.categories' }),
178
+ __metadata("design:type", Array)
179
+ ], BookCategoriesDto.prototype, "categories", void 0);
180
+ /**
181
+ * Saves the book's `pageCount`. `null` clears it.
182
+ */
183
+ class BookPageCountDto {
184
+ pageCount;
185
+ constructor(props) {
186
+ Object.assign(this, props);
187
+ }
188
+ }
189
+ exports.BookPageCountDto = BookPageCountDto;
190
+ __decorate([
191
+ (0, class_validator_1.IsOptional)(),
192
+ (0, class_validator_1.IsInt)({ message: 'gnosa.validation.book.pageCount' }),
193
+ (0, class_validator_1.Min)(1, { message: 'gnosa.validation.book.pageCount' }),
194
+ (0, class_validator_1.Max)(100000, { message: 'gnosa.validation.book.pageCount' }),
195
+ __metadata("design:type", Number)
196
+ ], BookPageCountDto.prototype, "pageCount", void 0);
197
+ /**
198
+ * Saves the book's `format`. `null` clears it.
199
+ */
200
+ class BookFormatDto {
201
+ format;
202
+ constructor(props) {
203
+ Object.assign(this, props);
204
+ }
205
+ }
206
+ exports.BookFormatDto = BookFormatDto;
207
+ __decorate([
208
+ (0, class_validator_1.IsOptional)(),
209
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.format' }),
210
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.format' }),
211
+ (0, common_1.Trim)(),
212
+ __metadata("design:type", String)
213
+ ], BookFormatDto.prototype, "format", void 0);
214
+ /**
215
+ * Saves the book's `binding`. `null` clears it.
216
+ */
217
+ class BookBindingDto {
218
+ binding;
219
+ constructor(props) {
220
+ Object.assign(this, props);
221
+ }
222
+ }
223
+ exports.BookBindingDto = BookBindingDto;
224
+ __decorate([
225
+ (0, class_validator_1.IsOptional)(),
226
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.binding' }),
227
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.binding' }),
228
+ (0, common_1.Trim)(),
229
+ __metadata("design:type", String)
230
+ ], BookBindingDto.prototype, "binding", void 0);
231
+ /**
232
+ * Saves the book's `dimensions`. `null` clears it.
233
+ */
234
+ class BookDimensionsDto {
235
+ dimensions;
236
+ constructor(props) {
237
+ Object.assign(this, props);
238
+ }
239
+ }
240
+ exports.BookDimensionsDto = BookDimensionsDto;
241
+ __decorate([
242
+ (0, class_validator_1.IsOptional)(),
243
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.dimensions' }),
244
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.dimensions' }),
245
+ (0, common_1.Trim)(),
246
+ __metadata("design:type", String)
247
+ ], BookDimensionsDto.prototype, "dimensions", void 0);
248
+ /**
249
+ * Saves the book's `priceEur`. `null` clears it.
250
+ *
251
+ * VAT-inclusive price in euros.
252
+ */
253
+ class BookPriceEurDto {
254
+ priceEur;
255
+ constructor(props) {
256
+ Object.assign(this, props);
257
+ }
258
+ }
259
+ exports.BookPriceEurDto = BookPriceEurDto;
260
+ __decorate([
261
+ (0, class_validator_1.IsOptional)(),
262
+ (0, class_validator_1.IsNumber)({ maxDecimalPlaces: 2 }, { message: 'gnosa.validation.book.priceEur' }),
263
+ (0, class_validator_1.Min)(0, { message: 'gnosa.validation.book.priceEur' }),
264
+ (0, class_validator_1.Max)(999999.99, { message: 'gnosa.validation.book.priceEur' }),
265
+ __metadata("design:type", Number)
266
+ ], BookPriceEurDto.prototype, "priceEur", void 0);
267
+ /**
268
+ * Saves the book's `priceMkd`. `null` clears it.
269
+ *
270
+ * VAT-inclusive price in Macedonian denars, entered separately rather than converted.
271
+ */
272
+ class BookPriceMkdDto {
273
+ priceMkd;
274
+ constructor(props) {
275
+ Object.assign(this, props);
276
+ }
277
+ }
278
+ exports.BookPriceMkdDto = BookPriceMkdDto;
279
+ __decorate([
280
+ (0, class_validator_1.IsOptional)(),
281
+ (0, class_validator_1.IsNumber)({ maxDecimalPlaces: 2 }, { message: 'gnosa.validation.book.priceMkd' }),
282
+ (0, class_validator_1.Min)(0, { message: 'gnosa.validation.book.priceMkd' }),
283
+ (0, class_validator_1.Max)(99999999.99, { message: 'gnosa.validation.book.priceMkd' }),
284
+ __metadata("design:type", Number)
285
+ ], BookPriceMkdDto.prototype, "priceMkd", void 0);
286
+ /**
287
+ * Saves the book's `isAvailable`. `null` clears it.
288
+ *
289
+ * Whether the physical book can be ordered. Independent of the PDF.
290
+ */
291
+ class BookIsAvailableDto {
292
+ isAvailable;
293
+ constructor(props) {
294
+ Object.assign(this, props);
295
+ }
296
+ }
297
+ exports.BookIsAvailableDto = BookIsAvailableDto;
298
+ __decorate([
299
+ (0, class_validator_1.IsOptional)(),
300
+ (0, class_validator_1.IsBoolean)({ message: 'gnosa.validation.book.availability' }),
301
+ (0, transformers_helper_1.AsSent)(),
302
+ __metadata("design:type", Boolean)
303
+ ], BookIsAvailableDto.prototype, "isAvailable", void 0);
304
+ /**
305
+ * Saves the book's `shortDescription` in one language, sent with its `language`. `null` clears it.
306
+ */
307
+ class BookShortDescriptionDto extends language_dto_1.LanguageDto {
308
+ shortDescription;
309
+ constructor(props) {
310
+ super();
311
+ Object.assign(this, props);
312
+ }
313
+ }
314
+ exports.BookShortDescriptionDto = BookShortDescriptionDto;
315
+ __decorate([
316
+ (0, class_validator_1.IsOptional)(),
317
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.shortDescription' }),
318
+ (0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.book.shortDescription' }),
319
+ (0, common_1.Trim)(),
320
+ __metadata("design:type", String)
321
+ ], BookShortDescriptionDto.prototype, "shortDescription", void 0);
322
+ /**
323
+ * Saves the book's `description` in one language, sent with its `language`. `null` clears it.
324
+ */
325
+ class BookDescriptionDto extends language_dto_1.LanguageDto {
326
+ description;
327
+ constructor(props) {
328
+ super();
329
+ Object.assign(this, props);
330
+ }
331
+ }
332
+ exports.BookDescriptionDto = BookDescriptionDto;
333
+ __decorate([
334
+ (0, class_validator_1.IsOptional)(),
335
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.description' }),
336
+ (0, class_validator_1.MaxLength)(50000, { message: 'gnosa.validation.book.description' }),
337
+ (0, common_1.Trim)(),
338
+ __metadata("design:type", String)
339
+ ], BookDescriptionDto.prototype, "description", void 0);
340
+ /**
341
+ * Saves the book's `seoTitle` in one language, sent with its `language`. `null` clears it.
342
+ */
343
+ class BookSeoTitleDto extends language_dto_1.LanguageDto {
344
+ seoTitle;
345
+ constructor(props) {
346
+ super();
347
+ Object.assign(this, props);
348
+ }
349
+ }
350
+ exports.BookSeoTitleDto = BookSeoTitleDto;
351
+ __decorate([
352
+ (0, class_validator_1.IsOptional)(),
353
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.seoTitle' }),
354
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.book.seoTitle' }),
355
+ (0, common_1.Trim)(),
356
+ __metadata("design:type", String)
357
+ ], BookSeoTitleDto.prototype, "seoTitle", void 0);
358
+ /**
359
+ * Saves the book's `seoDescription` in one language, sent with its `language`. `null` clears it.
360
+ */
361
+ class BookSeoDescriptionDto extends language_dto_1.LanguageDto {
362
+ seoDescription;
363
+ constructor(props) {
364
+ super();
365
+ Object.assign(this, props);
366
+ }
367
+ }
368
+ exports.BookSeoDescriptionDto = BookSeoDescriptionDto;
369
+ __decorate([
370
+ (0, class_validator_1.IsOptional)(),
371
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.book.seoDescription' }),
372
+ (0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.book.seoDescription' }),
373
+ (0, common_1.Trim)(),
374
+ __metadata("design:type", String)
375
+ ], BookSeoDescriptionDto.prototype, "seoDescription", void 0);
376
+ /**
377
+ * Whether a book is in the Featured Books tab and on the Home page. It can change whatever the
378
+ * book's status is.
379
+ */
380
+ class BookFeaturedDto {
381
+ isFeatured;
382
+ constructor(props) {
383
+ Object.assign(this, props);
384
+ }
385
+ }
386
+ exports.BookFeaturedDto = BookFeaturedDto;
387
+ __decorate([
388
+ (0, class_validator_1.IsBoolean)({ message: 'gnosa.validation.book.featured' }),
389
+ (0, transformers_helper_1.AsSent)(),
390
+ __metadata("design:type", Boolean)
391
+ ], BookFeaturedDto.prototype, "isFeatured", void 0);
392
+ /**
393
+ * The filters of the public Books Catalogue.
394
+ */
395
+ class BookCatalogueFilterDto {
396
+ /**
397
+ * Matches the title and the authors.
398
+ */
399
+ phrase;
400
+ /**
401
+ * The slug of a category.
402
+ */
403
+ category;
404
+ constructor(props) {
405
+ Object.assign(this, props);
406
+ }
407
+ }
408
+ exports.BookCatalogueFilterDto = BookCatalogueFilterDto;
409
+ __decorate([
410
+ (0, class_validator_1.IsOptional)(),
411
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.filter' }),
412
+ (0, common_1.Trim)(),
413
+ __metadata("design:type", String)
414
+ ], BookCatalogueFilterDto.prototype, "phrase", void 0);
415
+ __decorate([
416
+ (0, class_validator_1.IsOptional)(),
417
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.filter' }),
418
+ __metadata("design:type", String)
419
+ ], BookCatalogueFilterDto.prototype, "category", void 0);
420
+ /**
421
+ * The search and filters of the admin Books List.
422
+ */
423
+ class BookFilterDto extends BookCatalogueFilterDto {
424
+ status;
425
+ /**
426
+ * Whether the physical book can be ordered.
427
+ */
428
+ isAvailable;
429
+ /**
430
+ * Whether the book has a PDF.
431
+ */
432
+ hasPdf;
433
+ isFeatured;
434
+ constructor(props) {
435
+ super(props);
436
+ Object.assign(this, props);
437
+ }
438
+ }
439
+ exports.BookFilterDto = BookFilterDto;
440
+ __decorate([
441
+ (0, class_validator_1.IsOptional)(),
442
+ (0, class_validator_1.IsEnum)(publish_status_enum_1.PublishStatus, { message: 'gnosa.validation.filter' }),
443
+ __metadata("design:type", String)
444
+ ], BookFilterDto.prototype, "status", void 0);
445
+ __decorate([
446
+ (0, class_validator_1.IsOptional)(),
447
+ (0, class_validator_1.IsBoolean)({ message: 'gnosa.validation.filter' }),
448
+ (0, common_1.ToBoolean)(),
449
+ __metadata("design:type", Boolean)
450
+ ], BookFilterDto.prototype, "isAvailable", void 0);
451
+ __decorate([
452
+ (0, class_validator_1.IsOptional)(),
453
+ (0, class_validator_1.IsBoolean)({ message: 'gnosa.validation.filter' }),
454
+ (0, common_1.ToBoolean)(),
455
+ __metadata("design:type", Boolean)
456
+ ], BookFilterDto.prototype, "hasPdf", void 0);
457
+ __decorate([
458
+ (0, class_validator_1.IsOptional)(),
459
+ (0, class_validator_1.IsBoolean)({ message: 'gnosa.validation.filter' }),
460
+ (0, common_1.ToBoolean)(),
461
+ __metadata("design:type", Boolean)
462
+ ], BookFilterDto.prototype, "isFeatured", void 0);
463
+ //# sourceMappingURL=book.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"book.dto.js","sourceRoot":"","sources":["../../src/book/book.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyI;AACzI,6CAAmD;AAEnD,sEAAiE;AACjE,wEAA+D;AAC/D,0DAAsD;AACtD,4DAAoD;AAEpD;;;;GAIG;AACH,MAAa,YAAY;IAKxB,KAAK,CAAU;IAEf,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAVD,oCAUC;AALA;IAJ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