@volare.finance/schemas.js
Version:
53 lines • 2.83 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NftSummarySchema = exports.NftSummary = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let NftSummary = class NftSummary {
};
exports.NftSummary = NftSummary;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The ERC721 address.', example: '0x57e9a39ae8ec404c08f88740a9e6e306f50c937f' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], NftSummary.prototype, "contract", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The ERC721 contract's name in offchain.`, example: 'Polka City Asset' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], NftSummary.prototype, "name", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: `The ERC721 contract's description in offchain.`,
example: 'Polka City | Virtual Currency Investment Platform Polka City | A new fully autonomous contract based NFT platform that allows you to Invest in virtual assets in the form of a virtual city.',
}),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], NftSummary.prototype, "description", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({
description: `The ERC721 contract's image URL in offchain.`,
example: 'https://etherscan.io/token/images/polkacityassets_32.png',
}),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], NftSummary.prototype, "image", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The external link.', example: 'https://www.polkacity.io/' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], NftSummary.prototype, "external_link", void 0);
exports.NftSummary = NftSummary = __decorate([
(0, mongoose_1.Schema)({ collection: 'nft_summary' })
], NftSummary);
exports.NftSummarySchema = mongoose_1.SchemaFactory.createForClass(NftSummary);
//# sourceMappingURL=nft.summary.js.map