UNPKG

@wepublish/api

Version:
93 lines 3.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Image = exports.FocalPoint = void 0; const tslib_1 = require("tslib"); const graphql_1 = require("@nestjs/graphql"); const api_1 = require("../../../richtext-api/src"); let FocalPoint = exports.FocalPoint = class FocalPoint { }; tslib_1.__decorate([ (0, graphql_1.Field)(type => graphql_1.Float), tslib_1.__metadata("design:type", Number) ], FocalPoint.prototype, "x", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => graphql_1.Float), tslib_1.__metadata("design:type", Number) ], FocalPoint.prototype, "y", void 0); exports.FocalPoint = FocalPoint = tslib_1.__decorate([ (0, graphql_1.ObjectType)() ], FocalPoint); let Image = exports.Image = class Image { }; tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], Image.prototype, "id", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", Date) ], Image.prototype, "createdAt", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", Date) ], Image.prototype, "modifiedAt", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], Image.prototype, "filename", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], Image.prototype, "title", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => api_1.GraphQLRichText, { nullable: true }), tslib_1.__metadata("design:type", String) ], Image.prototype, "description", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => [String]), tslib_1.__metadata("design:type", Array) ], Image.prototype, "tags", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], Image.prototype, "link", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], Image.prototype, "source", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], Image.prototype, "license", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => graphql_1.Int), tslib_1.__metadata("design:type", Number) ], Image.prototype, "fileSize", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], Image.prototype, "extension", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], Image.prototype, "mimeType", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], Image.prototype, "format", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => graphql_1.Int), tslib_1.__metadata("design:type", Number) ], Image.prototype, "width", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => graphql_1.Int), tslib_1.__metadata("design:type", Number) ], Image.prototype, "height", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => FocalPoint, { nullable: true }), tslib_1.__metadata("design:type", FocalPoint) ], Image.prototype, "focalPoint", void 0); exports.Image = Image = tslib_1.__decorate([ (0, graphql_1.ObjectType)() ], Image); //# sourceMappingURL=image.model.js.map