-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(application): Implemented Installation API (#142)
- Loading branch information
1 parent
b4075ab
commit 6b60cbf
Showing
4 changed files
with
263 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from enum import Enum | ||
|
||
|
||
class UserPermissions(Enum): | ||
OWNER = "owner" | ||
MANAGERS = "managers" | ||
ALL = "all" | ||
GUESTS = "guests" | ||
RESTRICTED = "restricted" | ||
|
||
|
||
class ProjectPermissions(Enum): | ||
OWN = "own" | ||
RESTRICTED = "restricted" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from typing import Iterable | ||
from crowdin_api.typing import TypedDict | ||
from crowdin_api.api_resources.application.enums import ( | ||
UserPermissions, | ||
ProjectPermissions, | ||
) | ||
|
||
|
||
class ApplicationUser(TypedDict): | ||
value: UserPermissions | ||
ids: Iterable[int] | ||
|
||
|
||
class ApplicationProject(TypedDict): | ||
value: ProjectPermissions | ||
ids: Iterable[int] | ||
|
||
|
||
class ApplicationPermissions(TypedDict): | ||
user: ApplicationUser | ||
project: ApplicationProject | ||
|
||
|
||
class ApplicationInstallationPatchRequest(TypedDict): | ||
op: str | ||
path: str | ||
value: str |