From 260c7e19e07f60811b5ed0148317707a61a96ff7 Mon Sep 17 00:00:00 2001 From: Peter Chapman Date: Thu, 23 Jan 2025 14:20:52 +1300 Subject: [PATCH 1/2] Add lastSelectedTranslationScriptureRanges property to draft config --- .../scriptureforge/models/translate-config.ts | 1 + .../scriptureforge/services/sf-project-service.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/RealtimeServer/scriptureforge/models/translate-config.ts b/src/RealtimeServer/scriptureforge/models/translate-config.ts index 6f38eee5c9..6de6ee0f52 100644 --- a/src/RealtimeServer/scriptureforge/models/translate-config.ts +++ b/src/RealtimeServer/scriptureforge/models/translate-config.ts @@ -49,6 +49,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..3f8ad7da9c 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' } From ac4ba219de3a6858fca2b2337542fae7d05f840a Mon Sep 17 00:00:00 2001 From: Peter Chapman Date: Thu, 23 Jan 2025 15:04:43 +1300 Subject: [PATCH 2/2] Add all Paratext project types --- .../scriptureforge/models/translate-config.ts | 7 +++++++ .../scriptureforge/services/sf-project-service.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/RealtimeServer/scriptureforge/models/translate-config.ts b/src/RealtimeServer/scriptureforge/models/translate-config.ts index 6de6ee0f52..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' diff --git a/src/RealtimeServer/scriptureforge/services/sf-project-service.ts b/src/RealtimeServer/scriptureforge/services/sf-project-service.ts index 3f8ad7da9c..c185b22c10 100644 --- a/src/RealtimeServer/scriptureforge/services/sf-project-service.ts +++ b/src/RealtimeServer/scriptureforge/services/sf-project-service.ts @@ -314,6 +314,7 @@ export class SFProjectService extends ProjectService { projectType: { enum: [ 'Standard', + 'Resource', 'BackTranslation', 'Daughter', 'Transliteration', @@ -321,9 +322,15 @@ export class SFProjectService extends ProjectService { 'TransliterationWithEncoder', 'StudyBible', 'ConsultantNotes', + 'GlobalConsultantNotes', + 'GlobalAnthropologyNotes', 'StudyBibleAdditions', 'Auxiliary', + 'AuxiliaryResource', + 'MarbleResource', 'Xml', + 'XmlResource', + 'XmlDictionary', 'SourceLanguage', 'Dictionary', 'EnhancedResource'