UNPKG

n8n

Version:

n8n Workflow Automation Tool

96 lines 4.42 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.ChatHubMessage = void 0; const db_1 = require("@n8n/db"); const typeorm_1 = require("@n8n/typeorm"); let ChatHubMessage = class ChatHubMessage extends db_1.WithTimestamps { }; exports.ChatHubMessage = ChatHubMessage; __decorate([ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'), __metadata("design:type", String) ], ChatHubMessage.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)({ type: String }), __metadata("design:type", String) ], ChatHubMessage.prototype, "sessionId", void 0); __decorate([ (0, typeorm_1.ManyToOne)('ChatHubSession', 'messages', { onDelete: 'CASCADE' }), (0, typeorm_1.JoinColumn)({ name: 'sessionId' }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "session", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', length: 16 }), __metadata("design:type", String) ], ChatHubMessage.prototype, "type", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', length: 128 }), __metadata("design:type", String) ], ChatHubMessage.prototype, "name", void 0); __decorate([ (0, typeorm_1.Column)('text'), __metadata("design:type", String) ], ChatHubMessage.prototype, "content", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', length: 16, nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "provider", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', length: 256, nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "model", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "workflowId", void 0); __decorate([ (0, typeorm_1.ManyToOne)('WorkflowEntity', { onDelete: 'SET NULL', nullable: true }), (0, typeorm_1.JoinColumn)({ name: 'workflowId' }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "workflow", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'uuid', nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "agentId", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'int', nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "executionId", void 0); __decorate([ (0, typeorm_1.ManyToOne)('ExecutionEntity', { onDelete: 'SET NULL', nullable: true }), (0, typeorm_1.JoinColumn)({ name: 'executionId' }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "execution", void 0); __decorate([ (0, typeorm_1.Column)({ type: String, nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "previousMessageId", void 0); __decorate([ (0, typeorm_1.Column)({ type: String, nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "retryOfMessageId", void 0); __decorate([ (0, typeorm_1.Column)({ type: String, nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "revisionOfMessageId", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', length: 16, default: 'success' }), __metadata("design:type", String) ], ChatHubMessage.prototype, "status", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'json', nullable: true }), __metadata("design:type", Object) ], ChatHubMessage.prototype, "attachments", void 0); exports.ChatHubMessage = ChatHubMessage = __decorate([ (0, typeorm_1.Entity)({ name: 'chat_hub_messages' }) ], ChatHubMessage); //# sourceMappingURL=chat-hub-message.entity.js.map