Skip to content

Commit

Permalink
fix(Voice): better Enum naming
Browse files Browse the repository at this point in the history
  • Loading branch information
650elx committed Mar 20, 2024
1 parent 5a0d073 commit 96dfa8a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 44 deletions.
44 changes: 43 additions & 1 deletion sinch/domains/voice/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ConferenceCommand(Enum):
RESUME = "resume"


class ConferenceMusicOnHold(Enum):
class MusicOnHold(Enum):
RING = "ring"
MUSIC_1 = "music1"
MUSIC_2 = "music2"
Expand All @@ -33,3 +33,45 @@ class ConferenceDTMFOptionsMode(Enum):
IGNORE = "ignore"
FORWARD = "forward"
DETECT = "detect"


class Indications(Enum):
AUSTRIA = "at"
AUSTRALIA = "au"
BULGARIA = "bg"
BRAZIL = "br"
BELGIUM = "be"
SWITZERLAND = "ch"
CHILE = "cl"
CHINA = "cn"
CZECH_REPUBLIC = "cz"
GERMANY = "de"
DENMARK = "dk"
ESTONIA = "ee"
SPAIN = "es"
FINLAND = "fi"
FRANCE = "fr"
GREECE = "gr"
HUNGARY = "hu"
ISRAEL = "il"
INDIA = "in"
ITALY = "it"
LITHUANIA = "lt"
JAPAN = "jp"
MEXICO = "mx"
MALAYSIA = "my"
NETHERLANDS = "nl"
NORWAY = "no"
NEW_ZEALAND = "nz"
PHILIPPINES = "ph"
POLAND = "pl"
PORTUGAL = "pt"
RUSSIA = "ru"
SWEDEN = "se"
SINGAPORE = "sg"
THAILAND = "th"
UNITED_KINGDOM = "uk"
UNITED_STATES = "us"
TAIWAN = "tw"
VENEZUELA = "ve"
SOUTH_AFRICA = "za"
43 changes: 0 additions & 43 deletions sinch/domains/voice/models/svaml/actions/actions.py
Original file line number Diff line number Diff line change
@@ -1,52 +1,9 @@
from enum import Enum
from dataclasses import dataclass
from typing import Optional, List, TypedDict
from sinch.core.models.base_model import SinchRequestBaseModel
from sinch.domains.voice import Destination, ConferenceDTMFOptions


class Indications(Enum):
AUSTRIA = "at"
AUSTRALIA = "au"
BULGARIA = "bg"
BRAZIL = "br"
BELGIUM = "be"
SWITZERLAND = "ch"
CHILE = "cl"
CHINA = "cn"
CZECH_REPUBLIC = "cz"
GERMANY = "de"
DENMARK = "dk"
ESTONIA = "ee"
SPAIN = "es"
FINLAND = "fi"
FRANCE = "fr"
GREECE = "gr"
HUNGARY = "hu"
ISRAEL = "il"
INDIA = "in"
ITALY = "it"
LITHUANIA = "lt"
JAPAN = "jp"
MEXICO = "mx"
MALAYSIA = "my"
NETHERLANDS = "nl"
NORWAY = "no"
NEW_ZEALAND = "nz"
PHILIPPINES = "ph"
POLAND = "pl"
PORTUGAL = "pt"
RUSSIA = "ru"
SWEDEN = "se"
SINGAPORE = "sg"
THAILAND = "th"
UNITED_KINGDOM = "uk"
UNITED_STATES = "us"
TAIWAN = "tw"
VENEZUELA = "ve"
SOUTH_AFRICA = "za"


class AnsweringMachineDetection(TypedDict):
enabled: bool

Expand Down

0 comments on commit 96dfa8a

Please sign in to comment.