@xoxno/types 1.0.163 → 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.
|
@@ -49,3 +49,9 @@ export declare class CollectionProfileDoc {
|
|
|
49
49
|
_ts?: number;
|
|
50
50
|
constructor(props?: Partial<CollectionProfileDoc>);
|
|
51
51
|
}
|
|
52
|
+
declare type CollectionProfileEditDto_base = Partial<Pick<CollectionProfileDoc, "description" | "name">>;
|
|
53
|
+
export declare type CollectionProfileEditDto = CollectionProfileEditDto_base ;
|
|
54
|
+
declare const CollectionProfileEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<CollectionProfileDoc, "description" | "name">>>;
|
|
55
|
+
export declare class CollectionProfileEditDtoNest extends CollectionProfileEditDtoNest_base {
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -9,13 +9,14 @@ 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.CollectionProfileDoc = exports.TransferPolicy = exports.Rule = void 0;
|
|
12
|
+
exports.CollectionProfileEditDto = exports.CollectionProfileDoc = exports.TransferPolicy = exports.Rule = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const common_enum_1 = require("../../../enums/common.enum");
|
|
15
15
|
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([
|
|
@@ -332,3 +337,8 @@ __decorate([
|
|
|
332
337
|
}),
|
|
333
338
|
__metadata("design:type", Number)
|
|
334
339
|
], CollectionProfileDoc.prototype, "_ts", void 0);
|
|
340
|
+
class CollectionProfileEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(CollectionProfileDoc, ['description', 'name'])) {
|
|
341
|
+
}
|
|
342
|
+
exports.CollectionProfileEditDto = CollectionProfileEditDto;
|
|
343
|
+
|
|
344
|
+
exports.CollectionProfileEditDtoNest = CollectionProfileEditDto;
|