UNPKG

@volare.finance/schemas.js

Version:
42 lines 2.38 kB
"use strict"; 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.VolareCollateralSchema = exports.VolareCollateral = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let VolareCollateral = class VolareCollateral { }; exports.VolareCollateral = VolareCollateral; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The updated timestamp.', example: 1655289127 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareCollateral.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The owner address.', example: '0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareCollateral.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The collaterals addresses.', example: ['0xe44a09787c1576b97fbe1da811090a51eddca04f'] }), (0, mongoose_1.Prop)(), __metadata("design:type", Array) ], VolareCollateral.prototype, "assets", void 0); __decorate([ (0, swagger_1.ApiProperty)({ type: [Number], description: 'The collaterals amounts.', example: [5] }), (0, mongoose_1.Prop)(), __metadata("design:type", Array) ], VolareCollateral.prototype, "amounts", void 0); exports.VolareCollateral = VolareCollateral = __decorate([ (0, mongoose_1.Schema)({ collection: 'volare_collateral' }) ], VolareCollateral); exports.VolareCollateralSchema = mongoose_1.SchemaFactory.createForClass(VolareCollateral); //# sourceMappingURL=volare.collateral.js.map