@intelact/gnosa 0.1.3 → 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.
Files changed (35) hide show
  1. package/lib/book/book.dto.d.ts +9 -11
  2. package/lib/book/book.dto.js +16 -29
  3. package/lib/book/book.dto.js.map +1 -1
  4. package/lib/book/book.model.d.ts +0 -4
  5. package/lib/book/book.model.js +0 -8
  6. package/lib/book/book.model.js.map +1 -1
  7. package/lib/discover/discover.dto.d.ts +9 -8
  8. package/lib/discover/discover.dto.js +20 -20
  9. package/lib/discover/discover.dto.js.map +1 -1
  10. package/lib/discover/discover.model.d.ts +8 -7
  11. package/lib/discover/discover.model.js +13 -11
  12. package/lib/discover/discover.model.js.map +1 -1
  13. package/lib/event/event.dto.d.ts +12 -24
  14. package/lib/event/event.dto.js +19 -45
  15. package/lib/event/event.dto.js.map +1 -1
  16. package/lib/foundation/history.dto.d.ts +51 -23
  17. package/lib/foundation/history.dto.js +103 -77
  18. package/lib/foundation/history.dto.js.map +1 -1
  19. package/lib/foundation/history.model.d.ts +4 -1
  20. package/lib/foundation/history.model.js +8 -1
  21. package/lib/foundation/history.model.js.map +1 -1
  22. package/lib/foundation/partner.dto.d.ts +6 -2
  23. package/lib/foundation/partner.dto.js +6 -2
  24. package/lib/foundation/partner.dto.js.map +1 -1
  25. package/lib/foundation/person.dto.d.ts +6 -1
  26. package/lib/foundation/person.dto.js +12 -1
  27. package/lib/foundation/person.dto.js.map +1 -1
  28. package/lib/magazine/magazine.dto.d.ts +3 -2
  29. package/lib/magazine/magazine.dto.js +3 -2
  30. package/lib/magazine/magazine.dto.js.map +1 -1
  31. package/lib/order/order.dto.d.ts +0 -8
  32. package/lib/order/order.dto.js +0 -20
  33. package/lib/order/order.dto.js.map +1 -1
  34. package/lib/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +1 -1
@@ -1,32 +1,60 @@
1
- export declare class HistoryTranslationDto {
2
- title: string;
3
- shortDescription: string;
4
- /**
5
- * The full description.
6
- */
7
- description: string;
8
- seoTitle: string;
9
- seoDescription: string;
10
- constructor(props?: Partial<HistoryTranslationDto>);
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>);
11
42
  }
12
43
  /**
13
- * A history entry is never a draft, so every localized field is required in all three languages.
44
+ * Saves the entry's `seoDescription` in one language, sent with its `language`. `null` clears it.
14
45
  */
15
- export declare class HistoryTranslationsDto {
16
- sq: HistoryTranslationDto;
17
- en: HistoryTranslationDto;
18
- mk: HistoryTranslationDto;
19
- constructor(props?: Partial<HistoryTranslationsDto>);
46
+ export declare class HistorySeoDescriptionDto extends LanguageDto {
47
+ seoDescription?: string;
48
+ constructor(props?: Partial<HistorySeoDescriptionDto>);
20
49
  }
21
50
  /**
22
- * The fields of a history entry, sent as a multipart form together with the image `file`, which is
23
- * required when the entry is created.
51
+ * The search and filter of the admin History List.
24
52
  */
25
- export declare class HistoryDto {
53
+ export declare class HistoryFilterDto {
26
54
  /**
27
- * In UTC, as an ISO 8601 date.
55
+ * Matches the title, in any language.
28
56
  */
29
- date: Date;
30
- translations: HistoryTranslationsDto;
31
- constructor(props?: Partial<HistoryDto>);
57
+ phrase?: string;
58
+ status?: PublishStatus;
59
+ constructor(props?: Partial<HistoryFilterDto>);
32
60
  }
@@ -9,120 +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.HistoryDto = exports.HistoryTranslationsDto = exports.HistoryTranslationDto = void 0;
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 class_transformer_1 = require("class-transformer");
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
- * A missing date is asked for, and only a date that was given is called invalid.
19
+ * Saves the entry's `date`. `null` clears it.
20
+ *
21
+ * In UTC, as an ISO 8601 date.
19
22
  */
20
- const dateMessage = (args) => args.value === undefined || args.value === null || args.value === ''
21
- ? 'gnosa.validation.date.required'
22
- : 'gnosa.validation.date.invalid';
23
- class HistoryTranslationDto {
24
- title;
25
- shortDescription;
26
- /**
27
- * The full description.
28
- */
29
- description;
30
- seoTitle;
31
- seoDescription;
23
+ class HistoryDateDto {
24
+ date;
32
25
  constructor(props) {
33
26
  Object.assign(this, props);
34
27
  }
35
28
  }
36
- exports.HistoryTranslationDto = HistoryTranslationDto;
29
+ exports.HistoryDateDto = HistoryDateDto;
37
30
  __decorate([
38
- (0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.title.required' }),
39
- (0, class_validator_1.IsString)({ message: 'gnosa.validation.title.required' }),
40
- (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.title.invalid' }),
41
- (0, common_1.Trim)(),
42
- __metadata("design:type", String)
43
- ], HistoryTranslationDto.prototype, "title", void 0);
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 {
42
+ title;
43
+ constructor(props) {
44
+ super();
45
+ Object.assign(this, props);
46
+ }
47
+ }
48
+ exports.HistoryTitleDto = HistoryTitleDto;
44
49
  __decorate([
45
- (0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.shortDescription.required' }),
46
- (0, class_validator_1.IsString)({ message: 'gnosa.validation.shortDescription.required' }),
47
- (0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.shortDescription.invalid' }),
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' }),
48
53
  (0, common_1.Trim)(),
49
54
  __metadata("design:type", String)
50
- ], HistoryTranslationDto.prototype, "shortDescription", void 0);
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;
51
67
  __decorate([
52
- (0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.description.required' }),
53
- (0, class_validator_1.IsString)({ message: 'gnosa.validation.description.required' }),
54
- (0, class_validator_1.MaxLength)(10000, { message: 'gnosa.validation.description.invalid' }),
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' }),
55
71
  (0, common_1.Trim)(),
56
72
  __metadata("design:type", String)
57
- ], HistoryTranslationDto.prototype, "description", void 0);
73
+ ], HistoryShortDescriptionDto.prototype, "shortDescription", void 0);
74
+ /**
75
+ * Saves the entry's `description` (the full description) in one language, sent with its
76
+ * `language`. `null` clears it.
77
+ */
78
+ class HistoryDescriptionDto extends language_dto_1.LanguageDto {
79
+ description;
80
+ constructor(props) {
81
+ super();
82
+ Object.assign(this, props);
83
+ }
84
+ }
85
+ exports.HistoryDescriptionDto = HistoryDescriptionDto;
58
86
  __decorate([
59
- (0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.seoTitle.required' }),
60
- (0, class_validator_1.IsString)({ message: 'gnosa.validation.seoTitle.required' }),
61
- (0, class_validator_1.MaxLength)(255, { message: 'gnosa.validation.seoTitle.invalid' }),
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' }),
62
90
  (0, common_1.Trim)(),
63
91
  __metadata("design:type", String)
64
- ], HistoryTranslationDto.prototype, "seoTitle", void 0);
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;
65
104
  __decorate([
66
- (0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.seoDescription.required' }),
67
- (0, class_validator_1.IsString)({ message: 'gnosa.validation.seoDescription.required' }),
68
- (0, class_validator_1.MaxLength)(1000, { message: 'gnosa.validation.seoDescription.invalid' }),
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' }),
69
108
  (0, common_1.Trim)(),
70
109
  __metadata("design:type", String)
71
- ], HistoryTranslationDto.prototype, "seoDescription", void 0);
110
+ ], HistorySeoTitleDto.prototype, "seoTitle", void 0);
72
111
  /**
73
- * A history entry is never a draft, so every localized field is required in all three languages.
112
+ * Saves the entry's `seoDescription` in one language, sent with its `language`. `null` clears it.
74
113
  */
75
- class HistoryTranslationsDto {
76
- sq;
77
- en;
78
- mk;
114
+ class HistorySeoDescriptionDto extends language_dto_1.LanguageDto {
115
+ seoDescription;
79
116
  constructor(props) {
117
+ super();
80
118
  Object.assign(this, props);
81
119
  }
82
120
  }
83
- exports.HistoryTranslationsDto = HistoryTranslationsDto;
84
- __decorate([
85
- (0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.sq' }),
86
- (0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.sq' }),
87
- (0, class_transformer_1.Type)(() => HistoryTranslationDto),
88
- __metadata("design:type", HistoryTranslationDto)
89
- ], HistoryTranslationsDto.prototype, "sq", void 0);
121
+ exports.HistorySeoDescriptionDto = HistorySeoDescriptionDto;
90
122
  __decorate([
91
- (0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.en' }),
92
- (0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.en' }),
93
- (0, class_transformer_1.Type)(() => HistoryTranslationDto),
94
- __metadata("design:type", HistoryTranslationDto)
95
- ], HistoryTranslationsDto.prototype, "en", void 0);
96
- __decorate([
97
- (0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.mk' }),
98
- (0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.mk' }),
99
- (0, class_transformer_1.Type)(() => HistoryTranslationDto),
100
- __metadata("design:type", HistoryTranslationDto)
101
- ], HistoryTranslationsDto.prototype, "mk", void 0);
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);
102
129
  /**
103
- * The fields of a history entry, sent as a multipart form together with the image `file`, which is
104
- * required when the entry is created.
130
+ * The search and filter of the admin History List.
105
131
  */
106
- class HistoryDto {
132
+ class HistoryFilterDto {
107
133
  /**
108
- * In UTC, as an ISO 8601 date.
134
+ * Matches the title, in any language.
109
135
  */
110
- date;
111
- translations;
136
+ phrase;
137
+ status;
112
138
  constructor(props) {
113
139
  Object.assign(this, props);
114
140
  }
115
141
  }
116
- exports.HistoryDto = HistoryDto;
142
+ exports.HistoryFilterDto = HistoryFilterDto;
117
143
  __decorate([
118
- (0, class_validator_1.IsDate)({ message: dateMessage }),
119
- (0, transformers_helper_1.ToUtcDate)(),
120
- __metadata("design:type", Date)
121
- ], HistoryDto.prototype, "date", void 0);
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);
122
149
  __decorate([
123
- (0, class_validator_1.IsDefined)({ message: 'gnosa.validation.translations.required' }),
124
- (0, class_validator_1.ValidateNested)({ message: 'gnosa.validation.translations.required' }),
125
- (0, class_transformer_1.Type)(() => HistoryTranslationsDto),
126
- __metadata("design:type", HistoryTranslationsDto)
127
- ], 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);
128
154
  //# sourceMappingURL=history.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"history.dto.js","sourceRoot":"","sources":["../../src/foundation/history.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0H;AAC1H,6CAAwC;AACxC,yDAAyC;AAEzC,sEAAyD;AAEzD;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,IAAyB,EAAE,EAAE,CACjD,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE;IACnE,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,+BAA+B,CAAC;AAEpC,MAAa,qBAAqB;IAKjC,KAAK,CAAS;IAMd,gBAAgB,CAAS;IAEzB;;OAEG;IAKH,WAAW,CAAS;IAMpB,QAAQ,CAAS;IAMjB,cAAc,CAAS;IAEvB,YAAY,KAAsC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArCD,sDAqCC;AAhCA;IAJC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAC1D,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IACxD,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IAC7D,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;OAEG;IAIH,MAAM,CAAU;IAIhB,MAAM,CAAiB;IAEvB,YAAY,KAAiC;QAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,4CAgBC;AATA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAChD,IAAA,aAAI,GAAE;;gDACS;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mCAAa,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;;gDACvC"}
@@ -1,3 +1,4 @@
1
+ import { PublishStatus } from '../general/publish-status.enum';
1
2
  import { Translations } from '../general/translations';
2
3
  export declare class HistoryTranslation {
3
4
  title: string;
@@ -11,10 +12,12 @@ export declare class HistoryTranslation {
11
12
  constructor(props?: Partial<HistoryTranslation>);
12
13
  }
13
14
  /**
14
- * An entry of the foundation's history timeline.
15
+ * An entry of the foundation's history timeline. Like the other content records it is a Draft
16
+ * until it is published, and only Published entries are on the website.
15
17
  */
16
18
  export declare class History {
17
19
  slug: string;
20
+ status: PublishStatus;
18
21
  imageUrl: string;
19
22
  /**
20
23
  * The image file name as it was uploaded, and its size in bytes.
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.History = exports.HistoryTranslation = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
+ const publish_status_enum_1 = require("../general/publish-status.enum");
14
15
  class HistoryTranslation {
15
16
  title;
16
17
  shortDescription;
@@ -46,10 +47,12 @@ __decorate([
46
47
  __metadata("design:type", String)
47
48
  ], HistoryTranslation.prototype, "seoDescription", void 0);
48
49
  /**
49
- * An entry of the foundation's history timeline.
50
+ * An entry of the foundation's history timeline. Like the other content records it is a Draft
51
+ * until it is published, and only Published entries are on the website.
50
52
  */
51
53
  class History {
52
54
  slug;
55
+ status;
53
56
  imageUrl;
54
57
  /**
55
58
  * The image file name as it was uploaded, and its size in bytes.
@@ -81,6 +84,10 @@ __decorate([
81
84
  (0, class_transformer_1.Expose)(),
82
85
  __metadata("design:type", String)
83
86
  ], History.prototype, "slug", void 0);
87
+ __decorate([
88
+ (0, class_transformer_1.Expose)(),
89
+ __metadata("design:type", String)
90
+ ], History.prototype, "status", void 0);
84
91
  __decorate([
85
92
  (0, class_transformer_1.Expose)(),
86
93
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"history.model.js","sourceRoot":"","sources":["../../src/foundation/history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,MAAa,kBAAkB;IAE9B,KAAK,CAAS;IAGd,gBAAgB,CAAS;IAEzB;;OAEG;IAEH,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAGjB,cAAc,CAAS;IAEvB,YAAY,KAAmC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtBD,gDAsBC;AApBA;IADC,IAAA,0BAAM,GAAE;;iDACK;AAGd;IADC,IAAA,0BAAM,GAAE;;4DACgB;AAMzB;IADC,IAAA,0BAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;oDACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;0DACc;AAOxB;;GAEG;AACH,MAAa,OAAO;IAEnB,IAAI,CAAS;IAGb,QAAQ,CAAS;IAEjB;;OAEG;IAEH,SAAS,CAAS;IAGlB,SAAS,CAAS;IAElB;;OAEG;IAGH,IAAI,CAAO;IAEX;;OAEG;IAEH,KAAK,CAAU;IAGf,gBAAgB,CAAU;IAG1B,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,cAAc,CAAU;IAExB;;OAEG;IAEH,YAAY,CAAoC;IAEhD,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAlDD,0BAkDC;AAhDA;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;yCACQ;AAMjB;IADC,IAAA,0BAAM,GAAE;;0CACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;0CACS;AAOlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;qCAAC;AAMX;IADC,IAAA,0BAAM,GAAE;;sCACM;AAGf;IADC,IAAA,0BAAM,GAAE;;iDACiB;AAG1B;IADC,IAAA,0BAAM,GAAE;;4CACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;+CACe;AAMxB;IADC,IAAA,0BAAM,GAAE;;6CACuC"}
1
+ {"version":3,"file":"history.model.js","sourceRoot":"","sources":["../../src/foundation/history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,wEAA+D;AAG/D,MAAa,kBAAkB;IAE9B,KAAK,CAAS;IAGd,gBAAgB,CAAS;IAEzB;;OAEG;IAEH,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAGjB,cAAc,CAAS;IAEvB,YAAY,KAAmC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtBD,gDAsBC;AApBA;IADC,IAAA,0BAAM,GAAE;;iDACK;AAGd;IADC,IAAA,0BAAM,GAAE;;4DACgB;AAMzB;IADC,IAAA,0BAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;oDACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;0DACc;AAOxB;;;GAGG;AACH,MAAa,OAAO;IAEnB,IAAI,CAAS;IAGb,MAAM,CAAgB;IAGtB,QAAQ,CAAS;IAEjB;;OAEG;IAEH,SAAS,CAAS;IAGlB,SAAS,CAAS;IAElB;;OAEG;IAGH,IAAI,CAAO;IAEX;;OAEG;IAEH,KAAK,CAAU;IAGf,gBAAgB,CAAU;IAG1B,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,cAAc,CAAU;IAExB;;OAEG;IAEH,YAAY,CAAoC;IAEhD,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArDD,0BAqDC;AAnDA;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;uCACa;AAGtB;IADC,IAAA,0BAAM,GAAE;;yCACQ;AAMjB;IADC,IAAA,0BAAM,GAAE;;0CACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;0CACS;AAOlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;qCAAC;AAMX;IADC,IAAA,0BAAM,GAAE;;sCACM;AAGf;IADC,IAAA,0BAAM,GAAE;;iDACiB;AAG1B;IADC,IAAA,0BAAM,GAAE;;4CACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;+CACe;AAMxB;IADC,IAAA,0BAAM,GAAE;;6CACuC"}
@@ -12,11 +12,15 @@ export declare class PartnerTranslationsDto {
12
12
  constructor(props?: Partial<PartnerTranslationsDto>);
13
13
  }
14
14
  /**
15
- * The fields of a partner, sent as a multipart form together with the `logo` file.
15
+ * The fields of a partner, sent as a multipart form together with the `logo` file, which is required
16
+ * when the partner is created.
16
17
  */
17
18
  export declare class PartnerDto {
18
19
  name: string;
19
- externalUrl: string;
20
+ /**
21
+ * The partner's website, optional.
22
+ */
23
+ externalUrl?: string;
20
24
  translations: PartnerTranslationsDto;
21
25
  constructor(props?: Partial<PartnerDto>);
22
26
  }
@@ -58,10 +58,14 @@ __decorate([
58
58
  __metadata("design:type", PartnerTranslationDto)
59
59
  ], PartnerTranslationsDto.prototype, "mk", void 0);
60
60
  /**
61
- * The fields of a partner, sent as a multipart form together with the `logo` file.
61
+ * The fields of a partner, sent as a multipart form together with the `logo` file, which is required
62
+ * when the partner is created.
62
63
  */
63
64
  class PartnerDto {
64
65
  name;
66
+ /**
67
+ * The partner's website, optional.
68
+ */
65
69
  externalUrl;
66
70
  translations;
67
71
  constructor(props) {
@@ -77,7 +81,7 @@ __decorate([
77
81
  __metadata("design:type", String)
78
82
  ], PartnerDto.prototype, "name", void 0);
79
83
  __decorate([
80
- (0, class_validator_1.IsNotEmpty)({ message: 'gnosa.validation.url.invalid' }),
84
+ (0, class_validator_1.IsOptional)(),
81
85
  (0, class_validator_1.IsUrl)({ protocols: ['http', 'https'], require_protocol: true }, { message: 'gnosa.validation.url.invalid' }),
82
86
  (0, class_validator_1.MaxLength)(1024, { message: 'gnosa.validation.url.invalid' }),
83
87
  (0, common_1.Trim)(),
@@ -1 +1 @@
1
- {"version":3,"file":"partner.dto.js","sourceRoot":"","sources":["../../src/foundation/partner.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoG;AACpG,6CAAwC;AACxC,yDAAyC;AAEzC,MAAa,qBAAqB;IAKjC,WAAW,CAAS;IAEpB,YAAY,KAAsC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAVD,sDAUC;AALA;IAJC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IAChE,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IAC9D,IAAA,2BAAS,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IACrE,IAAA,aAAI,GAAE;;0DACa;AAOrB;;GAEG;AACH,MAAa,sBAAsB;IAIlC,EAAE,CAAwB;IAK1B,EAAE,CAAwB;IAK1B,EAAE,CAA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AC,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC5G,IAAA,2BAAS,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC5D,IAAA,aAAI,GAAE;;+CACc;AAKrB;IAHC,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAChE,IAAA,gCAAc,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IACrE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACrB,sBAAsB;gDAAC"}
@@ -14,12 +14,17 @@ export declare class PersonTranslationsDto {
14
14
  constructor(props?: Partial<PersonTranslationsDto>);
15
15
  }
16
16
  /**
17
- * The fields of a person, sent as a multipart form together with the `image` file.
17
+ * The fields of a person, sent as a multipart form together with the optional `image` file.
18
18
  */
19
19
  export declare class PersonDto {
20
20
  name: string;
21
21
  group: PersonGroup;
22
22
  translations: PersonTranslationsDto;
23
+ /**
24
+ * Removes the person's photo when no new `image` is sent. Left out, the photo is kept. Read from
25
+ * the raw form value: the implicit conversion would turn the text `"false"` into `true`.
26
+ */
27
+ removeImage?: boolean;
23
28
  constructor(props?: Partial<PersonDto>);
24
29
  }
25
30
  /**
@@ -60,12 +60,17 @@ __decorate([
60
60
  __metadata("design:type", PersonTranslationDto)
61
61
  ], PersonTranslationsDto.prototype, "mk", void 0);
62
62
  /**
63
- * The fields of a person, sent as a multipart form together with the `image` file.
63
+ * The fields of a person, sent as a multipart form together with the optional `image` file.
64
64
  */
65
65
  class PersonDto {
66
66
  name;
67
67
  group;
68
68
  translations;
69
+ /**
70
+ * Removes the person's photo when no new `image` is sent. Left out, the photo is kept. Read from
71
+ * the raw form value: the implicit conversion would turn the text `"false"` into `true`.
72
+ */
73
+ removeImage;
69
74
  constructor(props) {
70
75
  Object.assign(this, props);
71
76
  }
@@ -88,6 +93,12 @@ __decorate([
88
93
  (0, class_transformer_1.Type)(() => PersonTranslationsDto),
89
94
  __metadata("design:type", PersonTranslationsDto)
90
95
  ], PersonDto.prototype, "translations", void 0);
96
+ __decorate([
97
+ (0, class_validator_1.IsOptional)(),
98
+ (0, class_validator_1.IsBoolean)(),
99
+ (0, class_transformer_1.Transform)(({ obj, key }) => obj[key] === true || obj[key] === 'true'),
100
+ __metadata("design:type", Boolean)
101
+ ], PersonDto.prototype, "removeImage", void 0);
91
102
  /**
92
103
  * A new manual order of one group's people.
93
104
  */
@@ -1 +1 @@
1
- {"version":3,"file":"person.dto.js","sourceRoot":"","sources":["../../src/foundation/person.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqG;AACrG,6CAAwC;AACxC,yDAAyC;AAEzC,2DAAkD;AAClD,kDAA8C;AAE9C,MAAa,oBAAoB;IAKhC,QAAQ,CAAS;IAEjB,YAAY,KAAqC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAVD,oDAUC;AALA;IAJC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;IAC7D,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;IAC3D,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IAChE,IAAA,aAAI,GAAE;;sDACU;AAOlB;;GAEG;AACH,MAAa,qBAAqB;IAIjC,EAAE,CAAuB;IAKzB,EAAE,CAAuB;IAKzB,EAAE,CAAuB;IAEzB,YAAY,KAAsC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnBD,sDAmBC;AAfA;IAHC,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC1D,IAAA,gCAAc,EAAC,EAAE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AAO,EAAE,wCAAwC,EAAE,CAAC;IACrE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACpB,qBAAqB;+CAAC;AASpC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC;;8CAChD;AAOvB;;GAEG;AACH,MAAa,aAAc,SAAQ,kBAAO;IAEzC,KAAK,CAAc;IAEnB,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AARD,sCAQC;AANA;IADC,IAAA,wBAAM,EAAC,+BAAW,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;4CAChD"}
@@ -103,7 +103,8 @@ export declare class MagazineSeoDescriptionDto extends LanguageDto {
103
103
  constructor(props?: Partial<MagazineSeoDescriptionDto>);
104
104
  }
105
105
  /**
106
- * The search and filters of the admin Magazines List.
106
+ * The search and filters of the admin Magazines List. The list's Availability filter is the two
107
+ * flags together, as for books: only physical, only PDF, both or neither.
107
108
  */
108
109
  export declare class MagazineFilterDto {
109
110
  /**
@@ -112,7 +113,7 @@ export declare class MagazineFilterDto {
112
113
  phrase?: string;
113
114
  status?: PublishStatus;
114
115
  /**
115
- * Whether the physical issue can be ordered.
116
+ * Whether the physical issue can be ordered. `false` also matches a Draft that leaves it unset.
116
117
  */
117
118
  isAvailable?: boolean;
118
119
  /**
@@ -247,7 +247,8 @@ __decorate([
247
247
  __metadata("design:type", String)
248
248
  ], MagazineSeoDescriptionDto.prototype, "seoDescription", void 0);
249
249
  /**
250
- * The search and filters of the admin Magazines List.
250
+ * The search and filters of the admin Magazines List. The list's Availability filter is the two
251
+ * flags together, as for books: only physical, only PDF, both or neither.
251
252
  */
252
253
  class MagazineFilterDto {
253
254
  /**
@@ -256,7 +257,7 @@ class MagazineFilterDto {
256
257
  phrase;
257
258
  status;
258
259
  /**
259
- * Whether the physical issue can be ordered.
260
+ * Whether the physical issue can be ordered. `false` also matches a Draft that leaves it unset.
260
261
  */
261
262
  isAvailable;
262
263
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"magazine.dto.js","sourceRoot":"","sources":["../../src/magazine/magazine.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,6CAAmD;AAEnD,sEAAiE;AACjE,wEAA+D;AAC/D,0DAAsD;AAEtD;;;;GAIG;AACH,MAAa,kBAAkB;IAK9B,KAAK,CAAU;IAEf;;OAEG;IAKH,OAAO,CAAU;IAEjB,YAAY,KAAmC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnBD,gDAmBC;AAdA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAC/D,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IACrE,IAAA,aAAI,GAAE;;iDACQ;AASf;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IACjE,IAAA,2BAAS,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IACxE,IAAA,aAAI,GAAE;;mDACU;AAOlB;;;;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,I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AE;;iEACiB;AAQzB;;;GAGG;AACH,MAAa,iBAAiB;IAC7B;;OAEG;IAIH,MAAM,CAAU;IAIhB,MAAM,CAAiB;IAEvB;;OAEG;IAIH,WAAW,CAAW;IAEtB;;OAEG;IAIH,MAAM,CAAW;IAEjB,YAAY,KAAkC;QAC7C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhCD,8CAgCC;AAzBA;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;AAQvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACjD,IAAA,kBAAS,GAAE;;sDACU;AAQtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACjD,IAAA,kBAAS,GAAE;;iDACK"}
@@ -79,13 +79,5 @@ export declare class OrderFilterDto {
79
79
  */
80
80
  phrase?: string;
81
81
  status?: OrderStatus;
82
- /**
83
- * Orders placed at or after this time, in UTC.
84
- */
85
- from?: Date;
86
- /**
87
- * Orders placed at or before this time, in UTC.
88
- */
89
- to?: Date;
90
82
  constructor(props?: Partial<OrderFilterDto>);
91
83
  }
@@ -249,14 +249,6 @@ class OrderFilterDto {
249
249
  */
250
250
  phrase;
251
251
  status;
252
- /**
253
- * Orders placed at or after this time, in UTC.
254
- */
255
- from;
256
- /**
257
- * Orders placed at or before this time, in UTC.
258
- */
259
- to;
260
252
  constructor(props) {
261
253
  Object.assign(this, props);
262
254
  }
@@ -273,16 +265,4 @@ __decorate([
273
265
  (0, class_validator_1.IsEnum)(order_enum_1.OrderStatus, { message: 'gnosa.validation.filter' }),
274
266
  __metadata("design:type", String)
275
267
  ], OrderFilterDto.prototype, "status", void 0);
276
- __decorate([
277
- (0, class_validator_1.IsOptional)(),
278
- (0, class_validator_1.IsDate)({ message: 'gnosa.validation.filter' }),
279
- (0, transformers_helper_1.ToUtcDate)(),
280
- __metadata("design:type", Date)
281
- ], OrderFilterDto.prototype, "from", void 0);
282
- __decorate([
283
- (0, class_validator_1.IsOptional)(),
284
- (0, class_validator_1.IsDate)({ message: 'gnosa.validation.filter' }),
285
- (0, transformers_helper_1.ToUtcDate)(),
286
- __metadata("design:type", Date)
287
- ], OrderFilterDto.prototype, "to", void 0);
288
268
  //# sourceMappingURL=order.dto.js.map