@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,90 @@
1
+ import { PublishStatus } from '../general/publish-status.enum';
2
+ import { Translations } from '../general/translations';
3
+ import { Language } from '../general/language.enum';
4
+ /**
5
+ * A predefined book category, named in the app language.
6
+ */
7
+ export declare class BookCategory {
8
+ slug: string;
9
+ name: string;
10
+ constructor(props?: Partial<BookCategory>);
11
+ }
12
+ export declare class BookTranslation {
13
+ shortDescription: string;
14
+ description: string;
15
+ seoTitle: string;
16
+ seoDescription: string;
17
+ constructor(props?: Partial<BookTranslation>);
18
+ }
19
+ /**
20
+ * A book of the foundation. Lists carry the fields a list row or a catalogue card shows, the public
21
+ * detail adds the localized fields in the app language, and the editor carries every field with the
22
+ * localized ones in all three languages (`translations`).
23
+ */
24
+ export declare class Book {
25
+ slug: string;
26
+ status: PublishStatus;
27
+ /**
28
+ * The one title, in the book's original language, whatever the app language is.
29
+ */
30
+ title: string;
31
+ originalLanguage: Language;
32
+ authors: string;
33
+ translator: string;
34
+ editor: string;
35
+ publisher: string;
36
+ isbn: string;
37
+ /**
38
+ * In UTC.
39
+ */
40
+ publicationDate: Date;
41
+ pageCount: number;
42
+ format: string;
43
+ binding: string;
44
+ dimensions: string;
45
+ /**
46
+ * VAT-inclusive price in euros.
47
+ */
48
+ priceEur: number;
49
+ /**
50
+ * VAT-inclusive price in Macedonian denars.
51
+ */
52
+ priceMkd: number;
53
+ /**
54
+ * Whether the physical book can be ordered. Null while a Draft leaves it unset.
55
+ */
56
+ isAvailable: boolean;
57
+ coverUrl: string;
58
+ /**
59
+ * The cover file name as it was uploaded, and its size in bytes.
60
+ */
61
+ coverName: string;
62
+ coverSize: number;
63
+ /**
64
+ * The free PDF, or null when the book has none.
65
+ */
66
+ pdfUrl: string;
67
+ /**
68
+ * The PDF file name as it was uploaded, and its size in bytes.
69
+ */
70
+ pdfName: string;
71
+ pdfSize: number;
72
+ isFeatured: boolean;
73
+ /**
74
+ * Position in the Featured Books tab and on the Home page.
75
+ */
76
+ featuredSort: number;
77
+ categories: BookCategory[];
78
+ /**
79
+ * The localized fields in the app language (the public detail).
80
+ */
81
+ shortDescription?: string;
82
+ description?: string;
83
+ seoTitle?: string;
84
+ seoDescription?: string;
85
+ /**
86
+ * The localized fields in every language (the editor).
87
+ */
88
+ translations?: Translations<BookTranslation>;
89
+ constructor(props?: Partial<Book>);
90
+ }
@@ -0,0 +1,262 @@
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.Book = exports.BookTranslation = exports.BookCategory = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const publish_status_enum_1 = require("../general/publish-status.enum");
15
+ const language_enum_1 = require("../general/language.enum");
16
+ /**
17
+ * A predefined book category, named in the app language.
18
+ */
19
+ class BookCategory {
20
+ slug;
21
+ name;
22
+ constructor(props) {
23
+ Object.assign(this, props);
24
+ }
25
+ }
26
+ exports.BookCategory = BookCategory;
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], BookCategory.prototype, "slug", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], BookCategory.prototype, "name", void 0);
35
+ class BookTranslation {
36
+ shortDescription;
37
+ description;
38
+ seoTitle;
39
+ seoDescription;
40
+ constructor(props) {
41
+ Object.assign(this, props);
42
+ }
43
+ }
44
+ exports.BookTranslation = BookTranslation;
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", String)
48
+ ], BookTranslation.prototype, "shortDescription", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", String)
52
+ ], BookTranslation.prototype, "description", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], BookTranslation.prototype, "seoTitle", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], BookTranslation.prototype, "seoDescription", void 0);
61
+ /**
62
+ * A book of the foundation. Lists carry the fields a list row or a catalogue card shows, the public
63
+ * detail adds the localized fields in the app language, and the editor carries every field with the
64
+ * localized ones in all three languages (`translations`).
65
+ */
66
+ class Book {
67
+ slug;
68
+ status;
69
+ /**
70
+ * The one title, in the book's original language, whatever the app language is.
71
+ */
72
+ title;
73
+ originalLanguage;
74
+ authors;
75
+ translator;
76
+ editor;
77
+ publisher;
78
+ isbn;
79
+ /**
80
+ * In UTC.
81
+ */
82
+ publicationDate;
83
+ pageCount;
84
+ format;
85
+ binding;
86
+ dimensions;
87
+ /**
88
+ * VAT-inclusive price in euros.
89
+ */
90
+ priceEur;
91
+ /**
92
+ * VAT-inclusive price in Macedonian denars.
93
+ */
94
+ priceMkd;
95
+ /**
96
+ * Whether the physical book can be ordered. Null while a Draft leaves it unset.
97
+ */
98
+ isAvailable;
99
+ coverUrl;
100
+ /**
101
+ * The cover file name as it was uploaded, and its size in bytes.
102
+ */
103
+ coverName;
104
+ coverSize;
105
+ /**
106
+ * The free PDF, or null when the book has none.
107
+ */
108
+ pdfUrl;
109
+ /**
110
+ * The PDF file name as it was uploaded, and its size in bytes.
111
+ */
112
+ pdfName;
113
+ pdfSize;
114
+ isFeatured;
115
+ /**
116
+ * Position in the Featured Books tab and on the Home page.
117
+ */
118
+ featuredSort;
119
+ categories;
120
+ /**
121
+ * The localized fields in the app language (the public detail).
122
+ */
123
+ shortDescription;
124
+ description;
125
+ seoTitle;
126
+ seoDescription;
127
+ /**
128
+ * The localized fields in every language (the editor).
129
+ */
130
+ translations;
131
+ constructor(props) {
132
+ Object.assign(this, props);
133
+ }
134
+ }
135
+ exports.Book = Book;
136
+ __decorate([
137
+ (0, class_transformer_1.Expose)(),
138
+ __metadata("design:type", String)
139
+ ], Book.prototype, "slug", void 0);
140
+ __decorate([
141
+ (0, class_transformer_1.Expose)(),
142
+ __metadata("design:type", String)
143
+ ], Book.prototype, "status", void 0);
144
+ __decorate([
145
+ (0, class_transformer_1.Expose)(),
146
+ __metadata("design:type", String)
147
+ ], Book.prototype, "title", void 0);
148
+ __decorate([
149
+ (0, class_transformer_1.Expose)(),
150
+ __metadata("design:type", String)
151
+ ], Book.prototype, "originalLanguage", void 0);
152
+ __decorate([
153
+ (0, class_transformer_1.Expose)(),
154
+ __metadata("design:type", String)
155
+ ], Book.prototype, "authors", void 0);
156
+ __decorate([
157
+ (0, class_transformer_1.Expose)(),
158
+ __metadata("design:type", String)
159
+ ], Book.prototype, "translator", void 0);
160
+ __decorate([
161
+ (0, class_transformer_1.Expose)(),
162
+ __metadata("design:type", String)
163
+ ], Book.prototype, "editor", void 0);
164
+ __decorate([
165
+ (0, class_transformer_1.Expose)(),
166
+ __metadata("design:type", String)
167
+ ], Book.prototype, "publisher", void 0);
168
+ __decorate([
169
+ (0, class_transformer_1.Expose)(),
170
+ __metadata("design:type", String)
171
+ ], Book.prototype, "isbn", void 0);
172
+ __decorate([
173
+ (0, class_transformer_1.Expose)(),
174
+ (0, class_transformer_1.Type)(() => Date),
175
+ __metadata("design:type", Date)
176
+ ], Book.prototype, "publicationDate", void 0);
177
+ __decorate([
178
+ (0, class_transformer_1.Expose)(),
179
+ __metadata("design:type", Number)
180
+ ], Book.prototype, "pageCount", void 0);
181
+ __decorate([
182
+ (0, class_transformer_1.Expose)(),
183
+ __metadata("design:type", String)
184
+ ], Book.prototype, "format", void 0);
185
+ __decorate([
186
+ (0, class_transformer_1.Expose)(),
187
+ __metadata("design:type", String)
188
+ ], Book.prototype, "binding", void 0);
189
+ __decorate([
190
+ (0, class_transformer_1.Expose)(),
191
+ __metadata("design:type", String)
192
+ ], Book.prototype, "dimensions", void 0);
193
+ __decorate([
194
+ (0, class_transformer_1.Expose)(),
195
+ __metadata("design:type", Number)
196
+ ], Book.prototype, "priceEur", void 0);
197
+ __decorate([
198
+ (0, class_transformer_1.Expose)(),
199
+ __metadata("design:type", Number)
200
+ ], Book.prototype, "priceMkd", void 0);
201
+ __decorate([
202
+ (0, class_transformer_1.Expose)(),
203
+ __metadata("design:type", Boolean)
204
+ ], Book.prototype, "isAvailable", void 0);
205
+ __decorate([
206
+ (0, class_transformer_1.Expose)(),
207
+ __metadata("design:type", String)
208
+ ], Book.prototype, "coverUrl", void 0);
209
+ __decorate([
210
+ (0, class_transformer_1.Expose)(),
211
+ __metadata("design:type", String)
212
+ ], Book.prototype, "coverName", void 0);
213
+ __decorate([
214
+ (0, class_transformer_1.Expose)(),
215
+ __metadata("design:type", Number)
216
+ ], Book.prototype, "coverSize", void 0);
217
+ __decorate([
218
+ (0, class_transformer_1.Expose)(),
219
+ __metadata("design:type", String)
220
+ ], Book.prototype, "pdfUrl", void 0);
221
+ __decorate([
222
+ (0, class_transformer_1.Expose)(),
223
+ __metadata("design:type", String)
224
+ ], Book.prototype, "pdfName", void 0);
225
+ __decorate([
226
+ (0, class_transformer_1.Expose)(),
227
+ __metadata("design:type", Number)
228
+ ], Book.prototype, "pdfSize", void 0);
229
+ __decorate([
230
+ (0, class_transformer_1.Expose)(),
231
+ __metadata("design:type", Boolean)
232
+ ], Book.prototype, "isFeatured", void 0);
233
+ __decorate([
234
+ (0, class_transformer_1.Expose)(),
235
+ __metadata("design:type", Number)
236
+ ], Book.prototype, "featuredSort", void 0);
237
+ __decorate([
238
+ (0, class_transformer_1.Expose)(),
239
+ (0, class_transformer_1.Type)(() => BookCategory),
240
+ __metadata("design:type", Array)
241
+ ], Book.prototype, "categories", void 0);
242
+ __decorate([
243
+ (0, class_transformer_1.Expose)(),
244
+ __metadata("design:type", String)
245
+ ], Book.prototype, "shortDescription", void 0);
246
+ __decorate([
247
+ (0, class_transformer_1.Expose)(),
248
+ __metadata("design:type", String)
249
+ ], Book.prototype, "description", void 0);
250
+ __decorate([
251
+ (0, class_transformer_1.Expose)(),
252
+ __metadata("design:type", String)
253
+ ], Book.prototype, "seoTitle", void 0);
254
+ __decorate([
255
+ (0, class_transformer_1.Expose)(),
256
+ __metadata("design:type", String)
257
+ ], Book.prototype, "seoDescription", void 0);
258
+ __decorate([
259
+ (0, class_transformer_1.Expose)(),
260
+ __metadata("design:type", Object)
261
+ ], Book.prototype, "translations", void 0);
262
+ //# sourceMappingURL=book.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"book.model.js","sourceRoot":"","sources":["../../src/book/book.model.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,38 @@
1
+ import { PublishStatus } from '../general/publish-status.enum';
2
+ import { LanguageDto } from '../general/language.dto';
3
+ /**
4
+ * Saves the Discover item's `externalUrl`. `null` clears it.
5
+ *
6
+ * The page the Home page links to, starting with http:// or https://.
7
+ */
8
+ export declare class DiscoverExternalUrlDto {
9
+ externalUrl?: string;
10
+ constructor(props?: Partial<DiscoverExternalUrlDto>);
11
+ }
12
+ /**
13
+ * Saves the Discover item's `title` in one language, sent with its `language`. `null` clears it.
14
+ *
15
+ * A new Albanian title gives the item a new slug.
16
+ */
17
+ export declare class DiscoverTitleDto extends LanguageDto {
18
+ title?: string;
19
+ constructor(props?: Partial<DiscoverTitleDto>);
20
+ }
21
+ /**
22
+ * Saves the Discover item's `description` in one language, sent with its `language`. `null` clears it.
23
+ */
24
+ export declare class DiscoverDescriptionDto extends LanguageDto {
25
+ description?: string;
26
+ constructor(props?: Partial<DiscoverDescriptionDto>);
27
+ }
28
+ /**
29
+ * The search and filters of the admin Discover List.
30
+ */
31
+ export declare class DiscoverFilterDto {
32
+ /**
33
+ * Matches the title, in any language.
34
+ */
35
+ phrase?: string;
36
+ status?: PublishStatus;
37
+ constructor(props?: Partial<DiscoverFilterDto>);
38
+ }
@@ -0,0 +1,99 @@
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.DiscoverFilterDto = exports.DiscoverDescriptionDto = exports.DiscoverTitleDto = exports.DiscoverExternalUrlDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const common_1 = require("@intelact/common");
15
+ const publish_status_enum_1 = require("../general/publish-status.enum");
16
+ const language_dto_1 = require("../general/language.dto");
17
+ /**
18
+ * Saves the Discover item's `externalUrl`. `null` clears it.
19
+ *
20
+ * The page the Home page links to, starting with http:// or https://.
21
+ */
22
+ class DiscoverExternalUrlDto {
23
+ externalUrl;
24
+ constructor(props) {
25
+ Object.assign(this, props);
26
+ }
27
+ }
28
+ exports.DiscoverExternalUrlDto = DiscoverExternalUrlDto;
29
+ __decorate([
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsUrl)({ protocols: ['http', 'https'], require_protocol: true }, { message: 'gnosa.validation.url.invalid' }),
32
+ (0, class_validator_1.MaxLength)(1024, { message: 'gnosa.validation.url.invalid' }),
33
+ (0, common_1.Trim)(),
34
+ __metadata("design:type", String)
35
+ ], DiscoverExternalUrlDto.prototype, "externalUrl", void 0);
36
+ /**
37
+ * Saves the Discover item's `title` in one language, sent with its `language`. `null` clears it.
38
+ *
39
+ * A new Albanian title gives the item a new slug.
40
+ */
41
+ class DiscoverTitleDto extends language_dto_1.LanguageDto {
42
+ title;
43
+ constructor(props) {
44
+ super();
45
+ Object.assign(this, props);
46
+ }
47
+ }
48
+ exports.DiscoverTitleDto = DiscoverTitleDto;
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.discover.title' }),
52
+ (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.discover.title' }),
53
+ (0, common_1.Trim)(),
54
+ __metadata("design:type", String)
55
+ ], DiscoverTitleDto.prototype, "title", void 0);
56
+ /**
57
+ * Saves the Discover item's `description` in one language, sent with its `language`. `null` clears it.
58
+ */
59
+ class DiscoverDescriptionDto extends language_dto_1.LanguageDto {
60
+ description;
61
+ constructor(props) {
62
+ super();
63
+ Object.assign(this, props);
64
+ }
65
+ }
66
+ exports.DiscoverDescriptionDto = DiscoverDescriptionDto;
67
+ __decorate([
68
+ (0, class_validator_1.IsOptional)(),
69
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.discover.description' }),
70
+ (0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.discover.description' }),
71
+ (0, common_1.Trim)(),
72
+ __metadata("design:type", String)
73
+ ], DiscoverDescriptionDto.prototype, "description", void 0);
74
+ /**
75
+ * The search and filters of the admin Discover List.
76
+ */
77
+ class DiscoverFilterDto {
78
+ /**
79
+ * Matches the title, in any language.
80
+ */
81
+ phrase;
82
+ status;
83
+ constructor(props) {
84
+ Object.assign(this, props);
85
+ }
86
+ }
87
+ exports.DiscoverFilterDto = DiscoverFilterDto;
88
+ __decorate([
89
+ (0, class_validator_1.IsOptional)(),
90
+ (0, class_validator_1.IsString)({ message: 'gnosa.validation.filter' }),
91
+ (0, common_1.Trim)(),
92
+ __metadata("design:type", String)
93
+ ], DiscoverFilterDto.prototype, "phrase", void 0);
94
+ __decorate([
95
+ (0, class_validator_1.IsOptional)(),
96
+ (0, class_validator_1.IsEnum)(publish_status_enum_1.PublishStatus, { message: 'gnosa.validation.filter' }),
97
+ __metadata("design:type", String)
98
+ ], DiscoverFilterDto.prototype, "status", void 0);
99
+ //# sourceMappingURL=discover.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discover.dto.js","sourceRoot":"","sources":["../../src/discover/discover.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AACjF,6CAAwC;AAExC,wEAA+D;AAC/D,0DAAsD;AAEtD;;;;GAIG;AACH,MAAa,sBAAsB;IAKlC,WAAW,CAAU;IAErB,YAAY,KAAuC;QAClD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAVD,wDAUC;AALA;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;;2DACc;AAOtB;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,0BAAW;IAKhD,KAAK,CAAU;IAEf,YAAY,KAAiC;QAC5C,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAXD,4CAWC;AANA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IACxD,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAC9D,IAAA,aAAI,GAAE;;+CACQ;AAQhB;;GAEG;AACH,MAAa,sBAAuB,SAAQ,0BAAW;IAKtD,WAAW,CAAU;IAErB,YAAY,KAAuC;QAClD,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAXD,wDAWC;AANA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IAC9D,IAAA,2BAAS,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IACrE,IAAA,aAAI,GAAE;;2DACc;AAQtB;;GAEG;AACH,MAAa,iBAAiB;IAC7B;;OAEG;IAIH,MAAM,CAAU;IAIhB,MAAM,CAAiB;IAEvB,YAAY,KAAkC;QAC7C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,8CAgBC;AATA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAChD,IAAA,aAAI,GAAE;;iDACS;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mCAAa,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;;iDACvC"}
@@ -0,0 +1,30 @@
1
+ import { PublishStatus } from '../general/publish-status.enum';
2
+ import { Translations } from '../general/translations';
3
+ export declare class DiscoverTranslation {
4
+ title: string;
5
+ description: string;
6
+ constructor(props?: Partial<DiscoverTranslation>);
7
+ }
8
+ /**
9
+ * An external activity Gnosa promotes on its Home page: an image, a link and a short text. Lists
10
+ * carry the title in the app language, and the editor carries the localized fields in all three
11
+ * languages.
12
+ */
13
+ export declare class Discover {
14
+ slug: string;
15
+ status: PublishStatus;
16
+ imageUrl: string;
17
+ /**
18
+ * The page the Home page links to.
19
+ */
20
+ externalUrl: string;
21
+ /**
22
+ * The title in the app language (lists).
23
+ */
24
+ title?: string;
25
+ /**
26
+ * The localized fields in every language (the editor).
27
+ */
28
+ translations?: Translations<DiscoverTranslation>;
29
+ constructor(props?: Partial<Discover>);
30
+ }
@@ -0,0 +1,81 @@
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.Discover = exports.DiscoverTranslation = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const publish_status_enum_1 = require("../general/publish-status.enum");
15
+ class DiscoverTranslation {
16
+ title;
17
+ description;
18
+ constructor(props) {
19
+ Object.assign(this, props);
20
+ }
21
+ }
22
+ exports.DiscoverTranslation = DiscoverTranslation;
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], DiscoverTranslation.prototype, "title", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], DiscoverTranslation.prototype, "description", void 0);
31
+ /**
32
+ * An external activity Gnosa promotes on its Home page: an image, a link and a short text. Lists
33
+ * carry the title in the app language, and the editor carries the localized fields in all three
34
+ * languages.
35
+ */
36
+ class Discover {
37
+ slug;
38
+ status;
39
+ imageUrl;
40
+ /**
41
+ * The page the Home page links to.
42
+ */
43
+ externalUrl;
44
+ /**
45
+ * The title in the app language (lists).
46
+ */
47
+ title;
48
+ /**
49
+ * The localized fields in every language (the editor).
50
+ */
51
+ translations;
52
+ constructor(props) {
53
+ Object.assign(this, props);
54
+ }
55
+ }
56
+ exports.Discover = Discover;
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], Discover.prototype, "slug", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", String)
64
+ ], Discover.prototype, "status", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], Discover.prototype, "imageUrl", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", String)
72
+ ], Discover.prototype, "externalUrl", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ __metadata("design:type", String)
76
+ ], Discover.prototype, "title", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", Object)
80
+ ], Discover.prototype, "translations", void 0);
81
+ //# sourceMappingURL=discover.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discover.model.js","sourceRoot":"","sources":["../../src/discover/discover.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAE3C,wEAA+D;AAG/D,MAAa,mBAAmB;IAE/B,KAAK,CAAS;IAGd,WAAW,CAAS;IAEpB,YAAY,KAAoC;QAC/C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAVD,kDAUC;AARA;IADC,IAAA,0BAAM,GAAE;;kDACK;AAGd;IADC,IAAA,0BAAM,GAAE;;wDACW;AAOrB;;;;GAIG;AACH,MAAa,QAAQ;IAEpB,IAAI,CAAS;IAGb,MAAM,CAAgB;IAGtB,QAAQ,CAAS;IAEjB;;OAEG;IAEH,WAAW,CAAS;IAEpB;;OAEG;IAEH,KAAK,CAAU;IAEf;;OAEG;IAEH,YAAY,CAAqC;IAEjD,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/BD,4BA+BC;AA7BA;IADC,IAAA,0BAAM,GAAE;;sCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACa;AAGtB;IADC,IAAA,0BAAM,GAAE;;0CACQ;AAMjB;IADC,IAAA,0BAAM,GAAE;;6CACW;AAMpB;IADC,IAAA,0BAAM,GAAE;;uCACM;AAMf;IADC,IAAA,0BAAM,GAAE;;8CACwC"}