@xoxno/types 1.0.164 → 1.0.165
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.
|
@@ -16,6 +16,7 @@ const socials_1 = require("../../../common/socials");
|
|
|
16
16
|
const statistics_1 = require("../../../common/statistics");
|
|
17
17
|
const collectionConfig_1 = require("./collectionConfig");
|
|
18
18
|
const collection_enum_1 = require("../../../enums/collection.enum");
|
|
19
|
+
const class_validator_1 = require("class-validator");
|
|
19
20
|
class Rule {
|
|
20
21
|
}
|
|
21
22
|
exports.Rule = Rule;
|
|
@@ -119,6 +120,8 @@ __decorate([
|
|
|
119
120
|
description: 'Name of the collection',
|
|
120
121
|
example: 'My NFT Collection',
|
|
121
122
|
}),
|
|
123
|
+
(0, class_validator_1.IsString)(),
|
|
124
|
+
(0, class_validator_1.Length)(3, 30),
|
|
122
125
|
__metadata("design:type", String)
|
|
123
126
|
], CollectionProfileDoc.prototype, "name", void 0);
|
|
124
127
|
__decorate([
|
|
@@ -126,6 +129,8 @@ __decorate([
|
|
|
126
129
|
description: 'Description of the collection',
|
|
127
130
|
example: 'A unique collection of digital artwork',
|
|
128
131
|
}),
|
|
132
|
+
(0, class_validator_1.IsString)(),
|
|
133
|
+
(0, class_validator_1.Length)(3, 300),
|
|
129
134
|
__metadata("design:type", String)
|
|
130
135
|
], CollectionProfileDoc.prototype, "description", void 0);
|
|
131
136
|
__decorate([
|