From d65b4c310b40ac3a01d2c150b831279032c704a4 Mon Sep 17 00:00:00 2001 From: Bastian Rihm Date: Wed, 24 Jan 2024 12:05:00 +0100 Subject: [PATCH] Update generated fields --- internal/restrict/field_def.go | 5 +++-- pkg/datastore/dsfetch/fields_generated.go | 21 ++++++++++++++------ pkg/datastore/dskey/gen_collection_fields.go | 8 ++++---- 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/internal/restrict/field_def.go b/internal/restrict/field_def.go index 00724a9d..55385d41 100644 --- a/internal/restrict/field_def.go +++ b/internal/restrict/field_def.go @@ -1123,6 +1123,7 @@ var restrictionModes = map[string]string{ "speaker/speech_state": "A", "speaker/structure_level_list_of_speakers_id": "A", "speaker/total_pause": "A", + "speaker/unpause_time": "A", "speaker/weight": "A", // structure_level @@ -1130,9 +1131,9 @@ var restrictionModes = map[string]string{ "structure_level/default_time": "A", "structure_level/id": "A", "structure_level/meeting_id": "A", + "structure_level/meeting_user_ids": "A", "structure_level/name": "A", - "structure_level/meeting_user_ids": "B", - "structure_level/structure_level_list_of_speakers_ids": "B", + "structure_level/structure_level_list_of_speakers_ids": "A", // structure_level_list_of_speakers "structure_level_list_of_speakers/additional_time": "A", diff --git a/pkg/datastore/dsfetch/fields_generated.go b/pkg/datastore/dsfetch/fields_generated.go index 66caed24..dac10096 100644 --- a/pkg/datastore/dsfetch/fields_generated.go +++ b/pkg/datastore/dsfetch/fields_generated.go @@ -6890,6 +6890,15 @@ func (r *Fetch) Speaker_TotalPause(speakerID int) *ValueInt { return &ValueInt{fetch: r, key: key} } +func (r *Fetch) Speaker_UnpauseTime(speakerID int) *ValueInt { + key, err := dskey.FromParts("speaker", speakerID, "unpause_time") + if err != nil { + return &ValueInt{err: err} + } + + return &ValueInt{fetch: r, key: key} +} + func (r *Fetch) Speaker_Weight(speakerID int) *ValueInt { key, err := dskey.FromParts("speaker", speakerID, "weight") if err != nil { @@ -6899,13 +6908,13 @@ func (r *Fetch) Speaker_Weight(speakerID int) *ValueInt { return &ValueInt{fetch: r, key: key} } -func (r *Fetch) StructureLevelListOfSpeakers_AdditionalTime(structureLevelListOfSpeakersID int) *ValueInt { +func (r *Fetch) StructureLevelListOfSpeakers_AdditionalTime(structureLevelListOfSpeakersID int) *ValueFloat { key, err := dskey.FromParts("structure_level_list_of_speakers", structureLevelListOfSpeakersID, "additional_time") if err != nil { - return &ValueInt{err: err} + return &ValueFloat{err: err} } - return &ValueInt{fetch: r, key: key} + return &ValueFloat{fetch: r, key: key} } func (r *Fetch) StructureLevelListOfSpeakers_CurrentStartTime(structureLevelListOfSpeakersID int) *ValueInt { @@ -6953,13 +6962,13 @@ func (r *Fetch) StructureLevelListOfSpeakers_MeetingID(structureLevelListOfSpeak return &ValueInt{fetch: r, key: key, required: true} } -func (r *Fetch) StructureLevelListOfSpeakers_RemainingTime(structureLevelListOfSpeakersID int) *ValueInt { +func (r *Fetch) StructureLevelListOfSpeakers_RemainingTime(structureLevelListOfSpeakersID int) *ValueFloat { key, err := dskey.FromParts("structure_level_list_of_speakers", structureLevelListOfSpeakersID, "remaining_time") if err != nil { - return &ValueInt{err: err} + return &ValueFloat{err: err} } - return &ValueInt{fetch: r, key: key, required: true} + return &ValueFloat{fetch: r, key: key, required: true} } func (r *Fetch) StructureLevelListOfSpeakers_SpeakerIDs(structureLevelListOfSpeakersID int) *ValueIntSlice { diff --git a/pkg/datastore/dskey/gen_collection_fields.go b/pkg/datastore/dskey/gen_collection_fields.go index 0d75b45d..67c593ee 100644 --- a/pkg/datastore/dskey/gen_collection_fields.go +++ b/pkg/datastore/dskey/gen_collection_fields.go @@ -747,9 +747,9 @@ var collectionFields = [...]collectionField{ {"speaker", "speech_state"}, {"speaker", "structure_level_list_of_speakers_id"}, {"speaker", "total_pause"}, + {"speaker", "unpause_time"}, {"speaker", "weight"}, {"structure_level", "A"}, - {"structure_level", "B"}, {"structure_level", "color"}, {"structure_level", "default_time"}, {"structure_level", "id"}, @@ -2374,11 +2374,11 @@ func collectionFieldToID(cf string) int { return 743 case "speaker/total_pause": return 744 - case "speaker/weight": + case "speaker/unpause_time": return 745 - case "structure_level/A": + case "speaker/weight": return 746 - case "structure_level/B": + case "structure_level/A": return 747 case "structure_level/color": return 748