diff --git a/src/backend/core/proto/semantic_data.pb.go b/src/backend/core/proto/semantic_data.pb.go index 981993d8..1b8f71e6 100644 --- a/src/backend/core/proto/semantic_data.pb.go +++ b/src/backend/core/proto/semantic_data.pb.go @@ -23,94 +23,43 @@ const ( type FileType int32 const ( - // ORCHESTRATOR SEND TO CONNECTOR: FileType_UNKNOWN FileType = 0 - FileType_PDF FileType = 1 - FileType_XPS FileType = 2 - FileType_TXT FileType = 3 - FileType_DOCX FileType = 4 - FileType_DOC FileType = 5 - FileType_XLSX FileType = 6 - FileType_XLS FileType = 7 - FileType_PPTX FileType = 8 - FileType_PPT FileType = 9 - FileType_HWPX FileType = 10 - FileType_EPUB FileType = 11 - FileType_MOBI FileType = 12 - FileType_FB2 FileType = 13 - FileType_CBZ FileType = 14 - FileType_MD FileType = 15 - // ORCHESTRATOR SEND TO SEMANTIC - FileType_URL FileType = 16 - FileType_YT FileType = 17 - // ORCHESTRATOR SEND TO MEDIA - FileType_MP4 FileType = 18 - FileType_MP3 FileType = 19 - FileType_MPEG FileType = 20 - FileType_MPGA FileType = 21 - FileType_M4A FileType = 22 - FileType_WAV FileType = 23 - FileType_WEBM FileType = 24 - FileType_MOV FileType = 25 + FileType_URL FileType = 1 + FileType_PDF FileType = 2 + FileType_RTF FileType = 3 + FileType_DOC FileType = 4 + FileType_XLS FileType = 5 + FileType_PPT FileType = 6 + FileType_TXT FileType = 7 + FileType_MD FileType = 8 + FileType_YT FileType = 9 ) // Enum value maps for FileType. var ( FileType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "PDF", - 2: "XPS", - 3: "TXT", - 4: "DOCX", - 5: "DOC", - 6: "XLSX", - 7: "XLS", - 8: "PPTX", - 9: "PPT", - 10: "HWPX", - 11: "EPUB", - 12: "MOBI", - 13: "FB2", - 14: "CBZ", - 15: "MD", - 16: "URL", - 17: "YT", - 18: "MP4", - 19: "MP3", - 20: "MPEG", - 21: "MPGA", - 22: "M4A", - 23: "WAV", - 24: "WEBM", - 25: "MOV", + 0: "UNKNOWN", + 1: "URL", + 2: "PDF", + 3: "RTF", + 4: "DOC", + 5: "XLS", + 6: "PPT", + 7: "TXT", + 8: "MD", + 9: "YT", } FileType_value = map[string]int32{ "UNKNOWN": 0, - "PDF": 1, - "XPS": 2, - "TXT": 3, - "DOCX": 4, - "DOC": 5, - "XLSX": 6, - "XLS": 7, - "PPTX": 8, - "PPT": 9, - "HWPX": 10, - "EPUB": 11, - "MOBI": 12, - "FB2": 13, - "CBZ": 14, - "MD": 15, - "URL": 16, - "YT": 17, - "MP4": 18, - "MP3": 19, - "MPEG": 20, - "MPGA": 21, - "M4A": 22, - "WAV": 23, - "WEBM": 24, - "MOV": 25, + "URL": 1, + "PDF": 2, + "RTF": 3, + "DOC": 4, + "XLS": 5, + "PPT": 6, + "TXT": 7, + "MD": 8, + "YT": 9, } ) @@ -291,25 +240,16 @@ var file_semantic_data_proto_rawDesc = []byte{ 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0xff, 0x01, 0x0a, 0x08, 0x46, - 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x44, 0x46, 0x10, 0x01, 0x12, 0x07, 0x0a, - 0x03, 0x58, 0x50, 0x53, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x58, 0x54, 0x10, 0x03, 0x12, - 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x43, 0x58, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4f, 0x43, - 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x58, 0x4c, 0x53, 0x58, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03, - 0x58, 0x4c, 0x53, 0x10, 0x07, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x50, 0x54, 0x58, 0x10, 0x08, 0x12, - 0x07, 0x0a, 0x03, 0x50, 0x50, 0x54, 0x10, 0x09, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x57, 0x50, 0x58, - 0x10, 0x0a, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x50, 0x55, 0x42, 0x10, 0x0b, 0x12, 0x08, 0x0a, 0x04, - 0x4d, 0x4f, 0x42, 0x49, 0x10, 0x0c, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x42, 0x32, 0x10, 0x0d, 0x12, - 0x07, 0x0a, 0x03, 0x43, 0x42, 0x5a, 0x10, 0x0e, 0x12, 0x06, 0x0a, 0x02, 0x4d, 0x44, 0x10, 0x0f, - 0x12, 0x07, 0x0a, 0x03, 0x55, 0x52, 0x4c, 0x10, 0x10, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x54, 0x10, - 0x11, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x50, 0x34, 0x10, 0x12, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x50, - 0x33, 0x10, 0x13, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x50, 0x45, 0x47, 0x10, 0x14, 0x12, 0x08, 0x0a, - 0x04, 0x4d, 0x50, 0x47, 0x41, 0x10, 0x15, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x34, 0x41, 0x10, 0x16, - 0x12, 0x07, 0x0a, 0x03, 0x57, 0x41, 0x56, 0x10, 0x17, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x45, 0x42, - 0x4d, 0x10, 0x18, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x4f, 0x56, 0x10, 0x19, 0x42, 0x1a, 0x5a, 0x18, - 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x66, 0x0a, 0x08, 0x46, 0x69, + 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, + 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x52, 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, + 0x50, 0x44, 0x46, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x54, 0x46, 0x10, 0x03, 0x12, 0x07, + 0x0a, 0x03, 0x44, 0x4f, 0x43, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x58, 0x4c, 0x53, 0x10, 0x05, + 0x12, 0x07, 0x0a, 0x03, 0x50, 0x50, 0x54, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x58, 0x54, + 0x10, 0x07, 0x12, 0x06, 0x0a, 0x02, 0x4d, 0x44, 0x10, 0x08, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x54, + 0x10, 0x09, 0x42, 0x1a, 0x5a, 0x18, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/src/proto/semantic_data.proto b/src/proto/semantic_data.proto index b8ad6170..93913b2b 100644 --- a/src/proto/semantic_data.proto +++ b/src/proto/semantic_data.proto @@ -5,41 +5,56 @@ option go_package = "backend/core/proto;proto"; enum FileType { - // ORCHESTRATOR SEND TO CONNECTOR: - UNKNOWN = 0; - PDF = 1; - XPS = 2; - TXT = 3; - DOCX = 4; - DOC = 5; - XLSX = 6; - XLS = 7; - PPTX = 8; - PPT = 9; - HWPX = 10; - EPUB = 11; - MOBI = 12; - FB2 = 13; - CBZ = 14; - MD = 15; - // ORCHESTRATOR SEND TO SEMANTIC - URL = 16; - YT = 17; - - // ORCHESTRATOR SEND TO MEDIA - MP4 = 18; - MP3 = 19; - MPEG = 20; - MPGA = 21; - M4A = 22; - WAV = 23; - WEBM = 24; - MOV = 25; - + UNKNOWN = 0; + URL = 1; + PDF = 2; + RTF = 3; + DOC = 4; + XLS = 5; + PPT = 6; + TXT = 7; + MD = 8; + YT = 9; // add all supported file that in another document // check what with Google docs }; +//enum FileType { +// // ORCHESTRATOR SEND TO CONNECTOR: +// UNKNOWN = 0; +// PDF = 1; +// XPS = 2; +// TXT = 3; +// DOCX = 4; +// DOC = 5; +// XLSX = 6; +// XLS = 7; +// PPTX = 8; +// PPT = 9; +// HWPX = 10; +// EPUB = 11; +// MOBI = 12; +// FB2 = 13; +// CBZ = 14; +// MD = 15; +// // ORCHESTRATOR SEND TO SEMANTIC +// URL = 16; +// YT = 17; +// +// // ORCHESTRATOR SEND TO MEDIA +// MP4 = 18; +// MP3 = 19; +// MPEG = 20; +// MPGA = 21; +// M4A = 22; +// WAV = 23; +// WEBM = 24; +// MOV = 25; +// +// // add all supported file that in another document +// // check what with Google docs +//}; + message SemanticData { // This is the url where the file is located. // Based on the chunking type it will be a WEB URL (HTML type)