UNPKG

@wepublish/api

Version:
49 lines 2.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateBlockStyleInput = exports.CreateBlockStyleInput = exports.BlockStyle = void 0; const tslib_1 = require("tslib"); const graphql_1 = require("@nestjs/graphql"); const client_1 = require("@prisma/client"); (0, graphql_1.registerEnumType)(client_1.BlockType, { name: 'BlockType' }); let BlockStyle = exports.BlockStyle = class BlockStyle { }; tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], BlockStyle.prototype, "id", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", Date) ], BlockStyle.prototype, "createdAt", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", Date) ], BlockStyle.prototype, "modifiedAt", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], BlockStyle.prototype, "name", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => [client_1.BlockType]), tslib_1.__metadata("design:type", Array) ], BlockStyle.prototype, "blocks", void 0); exports.BlockStyle = BlockStyle = tslib_1.__decorate([ (0, graphql_1.ObjectType)() ], BlockStyle); let CreateBlockStyleInput = exports.CreateBlockStyleInput = class CreateBlockStyleInput extends (0, graphql_1.PickType)(BlockStyle, ['name', 'blocks'], graphql_1.ArgsType) { }; exports.CreateBlockStyleInput = CreateBlockStyleInput = tslib_1.__decorate([ (0, graphql_1.ArgsType)() ], CreateBlockStyleInput); let UpdateBlockStyleInput = exports.UpdateBlockStyleInput = class UpdateBlockStyleInput extends (0, graphql_1.PartialType)(CreateBlockStyleInput, graphql_1.ArgsType) { }; tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], UpdateBlockStyleInput.prototype, "id", void 0); exports.UpdateBlockStyleInput = UpdateBlockStyleInput = tslib_1.__decorate([ (0, graphql_1.ArgsType)() ], UpdateBlockStyleInput); //# sourceMappingURL=block-styles.model.js.map