-
Notifications
You must be signed in to change notification settings - Fork 36
feat(applications): add support for new endpoints #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
andrii-bodnar
merged 6 commits into
master
from
feature/issue-170_add-applications-new-endpoints
Aug 17, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6ee966e
feat: add Applications API support
innomaxx 3e2fe23
feat(applications): add support for new endpoints
innomaxx 6cfb856
fix: code review
innomaxx b9ae3f4
fix: code review
innomaxx 5327eab
fix: Copilot suggestions
innomaxx f22e5a1
Merge remote-tracking branch 'origin/master' into feature/issue-170_a…
innomaxx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,165 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace CrowdinApiClient\Model; | ||
|
|
||
| class ApplicationInstallation extends BaseModel | ||
| { | ||
| /** @var string */ | ||
| protected $identifier; | ||
|
|
||
| /** @var string */ | ||
| protected $name; | ||
|
|
||
| /** @var array|null */ | ||
| protected $installedBy = null; | ||
|
|
||
| /** @var string|null */ | ||
| protected $description = null; | ||
|
|
||
| /** @var string */ | ||
| protected $logo; | ||
|
|
||
| /** @var array|null */ | ||
| protected $agent = null; | ||
|
|
||
| /** @var string */ | ||
| protected $baseUrl; | ||
|
|
||
| /** @var string */ | ||
| protected $manifestUrl; | ||
|
|
||
| /** @var string|null */ | ||
| protected $createdAt = null; | ||
|
|
||
| /** @var array */ | ||
| protected $modules = []; | ||
|
|
||
| /** @var array */ | ||
| protected $scopes = []; | ||
|
|
||
| /** @var array */ | ||
| protected $permissions = []; | ||
|
|
||
| /** @var array */ | ||
| protected $defaultPermissions = []; | ||
|
|
||
| /** @var bool */ | ||
| protected $limitReached; | ||
|
|
||
| /** @var bool */ | ||
| protected $stringBasedAvailable; | ||
|
|
||
| public function __construct(array $data = []) | ||
| { | ||
| parent::__construct($data); | ||
|
|
||
| $this->identifier = (string)$this->getDataProperty('identifier'); | ||
| $this->name = (string)$this->getDataProperty('name'); | ||
| $this->installedBy = $this->getDataProperty('installedBy'); | ||
| $this->description = $this->getDataProperty('description'); | ||
| $this->logo = (string)$this->getDataProperty('logo'); | ||
| $this->agent = $this->getDataProperty('agent'); | ||
| $this->baseUrl = (string)$this->getDataProperty('baseUrl'); | ||
| $this->manifestUrl = (string)$this->getDataProperty('manifestUrl'); | ||
| $this->createdAt = $this->getDataProperty('createdAt'); | ||
| $this->modules = (array)$this->getDataProperty('modules'); | ||
| $this->scopes = (array)$this->getDataProperty('scopes'); | ||
| $this->permissions = (array)$this->getDataProperty('permissions'); | ||
| $this->defaultPermissions = (array)$this->getDataProperty('defaultPermissions'); | ||
| $this->limitReached = (bool)$this->getDataProperty('limitReached'); | ||
| $this->stringBasedAvailable = (bool)$this->getDataProperty('stringBasedAvailable'); | ||
| } | ||
|
|
||
| public function getIdentifier(): string | ||
| { | ||
| return $this->identifier; | ||
| } | ||
|
|
||
| public function getName(): string | ||
| { | ||
| return $this->name; | ||
| } | ||
|
|
||
| /** | ||
| * @return array|null | ||
| */ | ||
| public function getInstalledBy(): ?array | ||
| { | ||
| return $this->installedBy; | ||
| } | ||
|
|
||
| public function getDescription(): ?string | ||
| { | ||
| return $this->description; | ||
| } | ||
|
|
||
| public function getLogo(): string | ||
| { | ||
| return $this->logo; | ||
| } | ||
|
|
||
| /** | ||
| * @return array|null | ||
| */ | ||
| public function getAgent(): ?array | ||
| { | ||
| return $this->agent; | ||
| } | ||
|
|
||
| public function getBaseUrl(): string | ||
| { | ||
| return $this->baseUrl; | ||
| } | ||
|
|
||
| public function getManifestUrl(): string | ||
| { | ||
| return $this->manifestUrl; | ||
| } | ||
|
|
||
| public function getCreatedAt(): ?string | ||
| { | ||
| return $this->createdAt; | ||
| } | ||
|
|
||
| public function getModules(): array | ||
| { | ||
| return $this->modules; | ||
| } | ||
|
|
||
| public function getScopes(): array | ||
| { | ||
| return $this->scopes; | ||
| } | ||
|
|
||
| public function getPermissions(): array | ||
| { | ||
| return $this->permissions; | ||
| } | ||
|
|
||
| public function getDefaultPermissions(): array | ||
| { | ||
| return $this->defaultPermissions; | ||
| } | ||
|
|
||
| public function isLimitReached(): bool | ||
| { | ||
| return $this->limitReached; | ||
| } | ||
|
|
||
| public function isStringBasedAvailable(): bool | ||
| { | ||
| return $this->stringBasedAvailable; | ||
| } | ||
|
|
||
| public function setPermissions(array $permissions): void | ||
| { | ||
| $this->permissions = $permissions; | ||
| } | ||
|
|
||
| public function setModules(array $modules): void | ||
| { | ||
| $this->modules = $modules; | ||
| } | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.