Skip to content

Commit

Permalink
Update parenttext_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fagiothree committed Apr 2, 2024
1 parent e353a9b commit 5d36385
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/parenttext_pipeline/models/parenttext_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
from rpft.parsers.common.rowparser import ParserModel
from typing import List


###########################################
#general
class VariableModel(DataRowModel):
name: str = ''
value: str = ''

###################################################################
class IntroductionBlockModel(ParserModel):
msg_list: List[str] = []
Expand Down Expand Up @@ -66,6 +73,10 @@ class OptVideoBlockModel(ParserModel):
intro: str = ''
no_msg: str = ''

class AudioTipBlockModel(ParserModel):
n_files: int = 0
next_emoji: str = ''
text: str = ''

class PlhContentModel(DataRowModel):
module_name: str = ''
Expand All @@ -80,6 +91,7 @@ class PlhContentModel(DataRowModel):
audio: AudioBlockModel = AudioBlockModel()
congratulations: CongratulationsBlockModel = CongratulationsBlockModel()
opt_video: OptVideoBlockModel = OptVideoBlockModel()
audio_tip: AudioTipBlockModel = AudioTipBlockModel()
attached_single_doc: str = ''


Expand Down Expand Up @@ -205,6 +217,17 @@ class OnboardingQuestionRangeModel(DataRowModel):
general_error_msg: str = ''
ranges: List[OnboardingRangeModel] = []

class OnboardingQuestionConfirmModel(DataRowModel):
confirm_question: str = ''
proceed_opt: str = ''
stop_opt: str = ''
stop_message: str = ''
confirm_stop_question: str = ''
confirm_stop_proceed_opt: str = ''
confirm_stop_stop_opt: str = ''
farewell_message: str = ''
yes_variables: List[VariableModel] = []

################################
## LTP activity
class LtpActivityModel (DataRowModel):
Expand Down Expand Up @@ -258,9 +281,7 @@ class SwycModel(DataRowModel):
#########################
## delivery

class VariableModel(DataRowModel):
name: str = ''
value: str = ''


class IdGeneratorModel(DataRowModel):
success_msg: str = ''
Expand Down

0 comments on commit 5d36385

Please sign in to comment.