Skip to content

Commit

Permalink
chore: Add botx sync source type
Browse files Browse the repository at this point in the history
  • Loading branch information
nidemidovich committed Jan 18, 2023
1 parent 2651f76 commit 12c6c2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pybotx/models/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class SyncSourceTypes(AutoName):
ADMIN = auto()
EMAIL = auto()
OPENID = auto()
BOTX = auto()


UNSUPPORTED = Literal["UNSUPPORTED"]
Expand Down Expand Up @@ -146,6 +147,7 @@ class APISyncSourceTypes(Enum):
ADMIN = "admin"
EMAIL = "email"
OPENID = "openid"
BOTX = "botx"


def convert_client_platform_to_domain(
Expand Down Expand Up @@ -305,6 +307,7 @@ def convert_sync_source_type_to_domain(
APISyncSourceTypes.ADMIN: SyncSourceTypes.ADMIN,
APISyncSourceTypes.EMAIL: SyncSourceTypes.EMAIL,
APISyncSourceTypes.OPENID: SyncSourceTypes.OPENID,
APISyncSourceTypes.BOTX: SyncSourceTypes.BOTX,
}

converted_type: Optional[IncomingSyncSourceTypes]
Expand Down

0 comments on commit 12c6c2d

Please sign in to comment.