UNPKG

@volare.finance/schemas.js

Version:
62 lines 3.25 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.NotificationSchema = exports.Notification = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let Notification = class Notification { }; exports.Notification = Notification; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The notification id.', example: '0x50f83bdbd6bfdccefebdb36538eb39bdcbf8f24bbcbe03a27b2499ef542d25f6' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], Notification.prototype, "id", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The owner address.', example: '0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], Notification.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'This notification type.', example: 1 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], Notification.prototype, "type", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'This notification content.' }), (0, mongoose_1.Prop)({ type: Object }), __metadata("design:type", Object) ], Notification.prototype, "content", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The notification state.`, example: 0 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], Notification.prototype, "state", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The notification read status.`, example: false }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Boolean) ], Notification.prototype, "isRead", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The created timestamp.', example: 1655289127 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], Notification.prototype, "ctime", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The updated timestamp.', example: 1655289127 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], Notification.prototype, "mtime", void 0); exports.Notification = Notification = __decorate([ (0, mongoose_1.Schema)({ collection: 'notification' }) ], Notification); exports.NotificationSchema = mongoose_1.SchemaFactory.createForClass(Notification); //# sourceMappingURL=notification.js.map