Skip to content

Commit

Permalink
Add missing lastSelectedTranslationScriptureRanges property to TypeSc…
Browse files Browse the repository at this point in the history
…ript DraftConfig and schema (#2976)
  • Loading branch information
pmachapman authored Jan 23, 2025
1 parent 048cb90 commit 28f53f2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/RealtimeServer/scriptureforge/models/translate-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@ import { WritingSystem } from '../../common/models/writing-system';

export enum ProjectType {
Standard = 'Standard',
Resource = 'Resource',
BackTranslation = 'BackTranslation',
Daughter = 'Daughter',
Transliteration = 'Transliteration',
TransliterationManual = 'TransliterationManual',
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'
Expand Down Expand Up @@ -49,6 +56,7 @@ export interface DraftConfig {
lastSelectedTrainingScriptureRanges?: ProjectScriptureRange[];
lastSelectedTranslationBooks: number[];
lastSelectedTranslationScriptureRange?: string;
lastSelectedTranslationScriptureRanges?: ProjectScriptureRange[];
servalConfig?: string;
}

Expand Down
22 changes: 22 additions & 0 deletions src/RealtimeServer/scriptureforge/services/sf-project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,21 @@ export class SFProjectService extends ProjectService<SFProject> {
lastSelectedTranslationScriptureRange: {
bsonType: 'string'
},
lastSelectedTranslationScriptureRanges: {
bsonType: 'array',
items: {
bsonType: 'object',
properties: {
projectId: {
bsonType: 'string'
},
scriptureRange: {
bsonType: 'string'
}
},
additionalProperties: false
}
},
servalConfig: {
bsonType: 'string'
}
Expand All @@ -299,16 +314,23 @@ export class SFProjectService extends ProjectService<SFProject> {
projectType: {
enum: [
'Standard',
'Resource',
'BackTranslation',
'Daughter',
'Transliteration',
'TransliterationManual',
'TransliterationWithEncoder',
'StudyBible',
'ConsultantNotes',
'GlobalConsultantNotes',
'GlobalAnthropologyNotes',
'StudyBibleAdditions',
'Auxiliary',
'AuxiliaryResource',
'MarbleResource',
'Xml',
'XmlResource',
'XmlDictionary',
'SourceLanguage',
'Dictionary',
'EnhancedResource'
Expand Down

0 comments on commit 28f53f2

Please sign in to comment.