v7.0.0-beta.4 release

This commit is contained in:
HeuJung committed 2026-05-11 11:29:41 +09:00
1 parent 05db17887d
commit 1db039ff34
1545 files changed
+136783 -11634

No files matched your search

+24
View File
@@ -43,10 +43,30 @@ class TemplateResource extends BaseApiResource
// pending/bundled 상태
'is_pending' => $this->getValue('is_pending', false),
'is_bundled' => $this->getValue('is_bundled', false),
// 비활성화 메타 (코어 버전 호환성)
'deactivated_reason' => $this->getDeactivatedReasonValue(),
'deactivated_at' => $this->getValue('deactivated_at'),
'incompatible_required_version' => $this->getValue('incompatible_required_version'),
...$this->resourceMeta($request),
];
}
/**
* deactivated_reason 을 항상 string|null 로 직렬화합니다.
*
* @return string|null
*/
protected function getDeactivatedReasonValue(): ?string
{
$value = $this->getValue('deactivated_reason');
if ($value instanceof \BackedEnum) {
return $value->value;
}
return $value;
}
/**
* 리소스별 권한 매핑을 반환합니다.
*
@@ -87,6 +107,10 @@ class TemplateResource extends BaseApiResource
// pending/bundled 상태
'is_pending' => $this->getValue('is_pending', false),
'is_bundled' => $this->getValue('is_bundled', false),
// 비활성화 메타 (코어 버전 호환성)
'deactivated_reason' => $this->getDeactivatedReasonValue(),
'deactivated_at' => $this->getValue('deactivated_at'),
'incompatible_required_version' => $this->getValue('incompatible_required_version'),
// 상세 정보
'locales' => $this->getValue('locales', []),
'layouts_count' => $this->getValue('layouts_count', 0),