Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/CrowdinApiClient/Model/AiFileTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function __construct(array $data = [])
$this->progress = (int)$this->getDataProperty('progress');
$this->attributes = (array)$this->getDataProperty('attributes');
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->updatedAt = $this->getDataProperty('updatedAt');
$this->startedAt = $this->getDataProperty('startedAt');
$this->finishedAt = $this->getDataProperty('finishedAt');
$this->updatedAt = $this->nullableString('updatedAt');
$this->startedAt = $this->nullableString('startedAt');
$this->finishedAt = $this->nullableString('finishedAt');
}

public function getIdentifier(): string
Expand Down
14 changes: 7 additions & 7 deletions src/CrowdinApiClient/Model/AiPrompt.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ public function __construct(array $data = [])
$this->id = (int)$this->getDataProperty('id');
$this->name = (string)$this->getDataProperty('name');
$this->action = (string)$this->getDataProperty('action');
$this->aiProviderId = $this->getDataProperty('aiProviderId');
$this->aiModelId = $this->getDataProperty('aiModelId');
$this->aiProviderId = $this->nullableInt('aiProviderId');
$this->aiModelId = $this->nullableString('aiModelId');
$this->isEnabled = (bool)$this->getDataProperty('isEnabled');
$this->enabledProjectIds = (array)$this->getDataProperty('enabledProjectIds');
$this->config = (array)$this->getDataProperty('config');
$this->promptPreview = $this->getDataProperty('promptPreview');
$this->promptPreview = $this->nullableString('promptPreview');
$this->isFineTuningAvailable = (bool)$this->getDataProperty('isFineTuningAvailable');
$this->createdBy = $this->getDataProperty('createdBy');
$this->updatedBy = $this->getDataProperty('updatedBy');
$this->lastUsedBy = $this->getDataProperty('lastUsedBy');
$this->lastUsedAt = $this->getDataProperty('lastUsedAt');
$this->createdBy = $this->nullableInt('createdBy');
$this->updatedBy = $this->nullableInt('updatedBy');
$this->lastUsedBy = $this->nullableInt('lastUsedBy');
$this->lastUsedAt = $this->nullableString('lastUsedAt');
$this->usageCount = (int)$this->getDataProperty('usageCount');
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->updatedAt = (string)$this->getDataProperty('updatedAt');
Expand Down
6 changes: 3 additions & 3 deletions src/CrowdinApiClient/Model/AiPromptCompletion.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public function __construct(array $data = [])
$this->progress = (int)$this->getDataProperty('progress');
$this->attributes = (array)$this->getDataProperty('attributes');
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->updatedAt = $this->getDataProperty('updatedAt');
$this->startedAt = $this->getDataProperty('startedAt');
$this->finishedAt = $this->getDataProperty('finishedAt');
$this->updatedAt = $this->nullableString('updatedAt');
$this->startedAt = $this->nullableString('startedAt');
$this->finishedAt = $this->nullableString('finishedAt');
}

public function getIdentifier(): string
Expand Down
2 changes: 1 addition & 1 deletion src/CrowdinApiClient/Model/AiProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(array $data = [])
$this->id = (int)$this->getDataProperty('id');
$this->name = (string)$this->getDataProperty('name');
$this->type = (string)$this->getDataProperty('type');
$this->credentials = $this->getDataProperty('credentials');
$this->credentials = $this->nullableArray('credentials');
$this->config = (array)$this->getDataProperty('config');
$this->isEnabled = (bool)$this->getDataProperty('isEnabled');
$this->useSystemCredentials = (bool)$this->getDataProperty('useSystemCredentials');
Expand Down
6 changes: 3 additions & 3 deletions src/CrowdinApiClient/Model/AiProviderModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function __construct(array $data = [])
parent::__construct($data);

$this->id = (string)$this->getDataProperty('id');
$this->provider = $this->getDataProperty('provider');
$this->providerName = $this->getDataProperty('providerName');
$this->providerId = $this->getDataProperty('providerId');
$this->provider = $this->nullableString('provider');
$this->providerName = $this->nullableString('providerName');
$this->providerId = $this->nullableInt('providerId');
$this->contextWindow = $this->nullableInt('contextWindow');
$this->maxOutputTokens = $this->nullableInt('maxOutputTokens');
$this->supportsStreaming = $this->nullableBool('supportsStreaming');
Expand Down
6 changes: 3 additions & 3 deletions src/CrowdinApiClient/Model/AiReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public function __construct(array $data = [])
$this->progress = (int)$this->getDataProperty('progress');
$this->attributes = (array)$this->getDataProperty('attributes');
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->updatedAt = $this->getDataProperty('updatedAt');
$this->startedAt = $this->getDataProperty('startedAt');
$this->finishedAt = $this->getDataProperty('finishedAt');
$this->updatedAt = $this->nullableString('updatedAt');
$this->startedAt = $this->nullableString('startedAt');
$this->finishedAt = $this->nullableString('finishedAt');
$this->eta = $this->nullableString('eta');
}

Expand Down
30 changes: 15 additions & 15 deletions src/CrowdinApiClient/Model/AiRequestLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,26 @@ public function __construct(array $data = [])
$this->requestId = (string)$this->getDataProperty('requestId');
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->status = (string)$this->getDataProperty('status');
$this->httpStatus = $this->getDataProperty('httpStatus');
$this->httpStatus = $this->nullableInt('httpStatus');
$this->model = (string)$this->getDataProperty('model');
$this->sourceAction = (string)$this->getDataProperty('sourceAction');
$this->promptAction = $this->getDataProperty('promptAction');
$this->promptAction = $this->nullableString('promptAction');
$this->systemCredentials = (bool)$this->getDataProperty('systemCredentials');
$this->isAutoTriggered = (bool)$this->getDataProperty('isAutoTriggered');
$this->durationMs = $this->getDataProperty('durationMs');
$this->inputTokens = $this->getDataProperty('inputTokens');
$this->outputTokens = $this->getDataProperty('outputTokens');
$this->totalCost = $this->getDataProperty('totalCost');
$this->userId = $this->getDataProperty('userId');
$this->projectId = $this->getDataProperty('projectId');
$this->promptId = $this->getDataProperty('promptId');
$this->durationMs = $this->nullableInt('durationMs');
$this->inputTokens = $this->nullableInt('inputTokens');
$this->outputTokens = $this->nullableInt('outputTokens');
$this->totalCost = $this->nullableFloat('totalCost');
$this->userId = $this->nullableInt('userId');
$this->projectId = $this->nullableInt('projectId');
$this->promptId = $this->nullableInt('promptId');
$this->aiProviderId = (int)$this->getDataProperty('aiProviderId');
$this->tokenName = $this->getDataProperty('tokenName');
$this->oauthClientId = $this->getDataProperty('oauthClientId');
$this->oauthClientName = $this->getDataProperty('oauthClientName');
$this->ip = $this->getDataProperty('ip');
$this->userAgent = $this->getDataProperty('userAgent');
$this->error = $this->getDataProperty('error');
$this->tokenName = $this->nullableString('tokenName');
$this->oauthClientId = $this->nullableString('oauthClientId');
$this->oauthClientName = $this->nullableString('oauthClientName');
$this->ip = $this->nullableString('ip');
$this->userAgent = $this->nullableString('userAgent');
$this->error = $this->nullableString('error');
}

public function getId(): int
Expand Down
4 changes: 2 additions & 2 deletions src/CrowdinApiClient/Model/AiSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function __construct(array $data = [])

$this->preTranslationAiPromptId = (int)$this->getDataProperty('preTranslationAiPromptId');
$this->editorSuggestionAiPromptId = (int)$this->getDataProperty('editorSuggestionAiPromptId');
$this->qaCheckActionAiPromptId = $this->getDataProperty('qaCheckActionAiPromptId');
$this->contextReviewAiPromptId = $this->getDataProperty('contextReviewAiPromptId');
$this->qaCheckActionAiPromptId = $this->nullableInt('qaCheckActionAiPromptId');
$this->contextReviewAiPromptId = $this->nullableInt('contextReviewAiPromptId');
$this->alignmentActionAiPromptId = $this->nullableInt('alignmentActionAiPromptId');
$this->dailyCostLimit = $this->nullableFloat('dailyCostLimit');
$this->isLimitingActive = (bool)$this->getDataProperty('isLimitingActive');
Expand Down
18 changes: 0 additions & 18 deletions src/CrowdinApiClient/Model/Alignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,49 +51,31 @@ public function __construct(array $data = [])
$this->probability = (float)$this->getDataProperty('probability');
}

/**
* @return string
*/
public function getSourceWord(): string
{
return $this->sourceWord;
}

/**
* @return string
*/
public function getSourceLemma(): string
{
return $this->sourceLemma;
}

/**
* @return string
*/
public function getTargetWord(): string
{
return $this->targetWord;
}

/**
* @return string
*/
public function getTargetLemma(): string
{
return $this->targetLemma;
}

/**
* @return int
*/
public function getMatch(): int
{
return $this->match;
}

/**
* @return float
*/
public function getProbability(): float
{
return $this->probability;
Expand Down
7 changes: 2 additions & 5 deletions src/CrowdinApiClient/Model/ApplicationConsent.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public function __construct(array $data = [])
parent::__construct($data);

$this->id = (int)$this->getDataProperty('id');
$this->installedBy = $this->getDataProperty('installedBy');
$this->installedBy = $this->nullableArray('installedBy');
$this->identifier = (string)$this->getDataProperty('identifier');
$this->name = $this->getDataProperty('name');
$this->name = $this->nullableString('name');
$this->status = (string)$this->getDataProperty('status');
$this->scopes = (array)$this->getDataProperty('scopes');
$this->createdAt = (string)$this->getDataProperty('createdAt');
Expand All @@ -49,9 +49,6 @@ public function getId(): int
return $this->id;
}

/**
* @return array|null
*/
public function getInstalledBy(): ?array
{
return $this->installedBy;
Expand Down
14 changes: 4 additions & 10 deletions src/CrowdinApiClient/Model/ApplicationInstallation.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ public function __construct(array $data = [])

$this->identifier = (string)$this->getDataProperty('identifier');
$this->name = (string)$this->getDataProperty('name');
$this->installedBy = $this->getDataProperty('installedBy');
$this->description = $this->getDataProperty('description');
$this->installedBy = $this->nullableArray('installedBy');
$this->description = $this->nullableString('description');
$this->logo = (string)$this->getDataProperty('logo');
$this->agent = $this->getDataProperty('agent');
$this->agent = $this->nullableArray('agent');
$this->baseUrl = (string)$this->getDataProperty('baseUrl');
$this->manifestUrl = (string)$this->getDataProperty('manifestUrl');
$this->createdAt = $this->getDataProperty('createdAt');
$this->createdAt = $this->nullableString('createdAt');
$this->modules = (array)$this->getDataProperty('modules');
$this->scopes = (array)$this->getDataProperty('scopes');
$this->permissions = (array)$this->getDataProperty('permissions');
Expand All @@ -102,9 +102,6 @@ public function getName(): string
return $this->name;
}

/**
* @return array|null
*/
public function getInstalledBy(): ?array
{
return $this->installedBy;
Expand All @@ -120,9 +117,6 @@ public function getLogo(): string
return $this->logo;
}

/**
* @return array|null
*/
public function getAgent(): ?array
{
return $this->agent;
Expand Down
36 changes: 0 additions & 36 deletions src/CrowdinApiClient/Model/Branch.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,81 +67,51 @@ public function __construct(array $data = [])
$this->updatedAt = (string)$this->getDataProperty('updatedAt');
}

/**
* @return int
*/
public function getId(): int
{
return $this->id;
}

/**
* @return int
*/
public function getProjectId(): int
{
return $this->projectId;
}

/**
* @return string
*/
public function getName(): string
{
return $this->name;
}

/**
* @param string $name
*/
public function setName(string $name): void
{
$this->name = $name;
}

/**
* @return string
*/
public function getTitle(): string
{
return $this->title;
}

/**
* @param string $title
*/
public function setTitle(string $title): void
{
$this->title = $title;
}

/**
* @return string
*/
public function getExportPattern(): string
{
return $this->exportPattern;
}

/**
* @param string $exportPattern
*/
public function setExportPattern(string $exportPattern): void
{
$this->exportPattern = $exportPattern;
}

/**
* @return string
*/
public function getPriority(): string
{
return $this->priority;
}

/**
* @param string $priority
*/
public function setPriority(string $priority): void
{
$this->priority = $priority;
Expand All @@ -152,17 +122,11 @@ public function isProtected(): bool
return $this->isProtected;
}

/**
* @return string
*/
public function getCreatedAt(): string
{
return $this->createdAt;
}

/**
* @return string
*/
public function getUpdatedAt(): string
{
return $this->updatedAt;
Expand Down
4 changes: 2 additions & 2 deletions src/CrowdinApiClient/Model/BranchClone.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function __construct(array $data = [])
$this->attributes = (array)$this->getDataProperty('attributes');
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->updatedAt = (string)$this->getDataProperty('updatedAt');
$this->startedAt = $this->getDataProperty('startedAt');
$this->finishedAt = $this->getDataProperty('finishedAt');
$this->startedAt = $this->nullableString('startedAt');
$this->finishedAt = $this->nullableString('finishedAt');
}

public function getIdentifier(): string
Expand Down
4 changes: 2 additions & 2 deletions src/CrowdinApiClient/Model/BranchMerge.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function __construct(array $data = [])
$this->attributes = (array)$this->getDataProperty('attributes');
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->updatedAt = (string)$this->getDataProperty('updatedAt');
$this->startedAt = $this->getDataProperty('startedAt');
$this->finishedAt = $this->getDataProperty('finishedAt');
$this->startedAt = $this->nullableString('startedAt');
$this->finishedAt = $this->nullableString('finishedAt');
}

public function getIdentifier(): string
Expand Down
Loading
Loading