diff --git a/src/RealtimeServer/scriptureforge/models/translate-config.ts b/src/RealtimeServer/scriptureforge/models/translate-config.ts index 6f38eee5c9..11ba5a2708 100644 --- a/src/RealtimeServer/scriptureforge/models/translate-config.ts +++ b/src/RealtimeServer/scriptureforge/models/translate-config.ts @@ -2,6 +2,7 @@ import { WritingSystem } from '../../common/models/writing-system'; export enum ProjectType { Standard = 'Standard', + Resource = 'Resource', BackTranslation = 'BackTranslation', Daughter = 'Daughter', Transliteration = 'Transliteration', @@ -9,9 +10,15 @@ export enum ProjectType { TransliterationWithEncoder = 'TransliterationWithEncoder', StudyBible = 'StudyBible', ConsultantNotes = 'ConsultantNotes', + GlobalConsultantNotes = 'GlobalConsultantNotes', + GlobalAnthropologyNotes = 'GlobalAnthropologyNotes', StudyBibleAdditions = 'StudyBibleAdditions', Auxiliary = 'Auxiliary', + AuxiliaryResource = 'AuxiliaryResource', + MarbleResource = 'MarbleResource', Xml = 'Xml', + XmlResource = 'XmlResource', + XmlDictionary = 'XmlDictionary', SourceLanguage = 'SourceLanguage', Dictionary = 'Dictionary', EnhancedResource = 'EnhancedResource' @@ -49,6 +56,7 @@ export interface DraftConfig { lastSelectedTrainingScriptureRanges?: ProjectScriptureRange[]; lastSelectedTranslationBooks: number[]; lastSelectedTranslationScriptureRange?: string; + lastSelectedTranslationScriptureRanges?: ProjectScriptureRange[]; servalConfig?: string; } diff --git a/src/RealtimeServer/scriptureforge/services/sf-project-service.ts b/src/RealtimeServer/scriptureforge/services/sf-project-service.ts index bfed1182cd..c185b22c10 100644 --- a/src/RealtimeServer/scriptureforge/services/sf-project-service.ts +++ b/src/RealtimeServer/scriptureforge/services/sf-project-service.ts @@ -290,6 +290,21 @@ export class SFProjectService extends ProjectService { lastSelectedTranslationScriptureRange: { bsonType: 'string' }, + lastSelectedTranslationScriptureRanges: { + bsonType: 'array', + items: { + bsonType: 'object', + properties: { + projectId: { + bsonType: 'string' + }, + scriptureRange: { + bsonType: 'string' + } + }, + additionalProperties: false + } + }, servalConfig: { bsonType: 'string' } @@ -299,6 +314,7 @@ export class SFProjectService extends ProjectService { projectType: { enum: [ 'Standard', + 'Resource', 'BackTranslation', 'Daughter', 'Transliteration', @@ -306,9 +322,15 @@ export class SFProjectService extends ProjectService { 'TransliterationWithEncoder', 'StudyBible', 'ConsultantNotes', + 'GlobalConsultantNotes', + 'GlobalAnthropologyNotes', 'StudyBibleAdditions', 'Auxiliary', + 'AuxiliaryResource', + 'MarbleResource', 'Xml', + 'XmlResource', + 'XmlDictionary', 'SourceLanguage', 'Dictionary', 'EnhancedResource'