mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-06 03:39:05 +08:00
feat: 上架视频剪辑固定材料与作者契约
This commit is contained in:
1 parent
9577e9a411
commit
eef65008eb
18 files changed
+5658
-198
No files matched your search
@@ -0,0 +1,10 @@
|
||||
/** 作者 release 使用受审的新契约;普通条目仍由已发布 global Schema 校验。 */
|
||||
export const AUTHORED_ENTRY_SCHEMA_FILENAME = 'registry-entry.v4.3.schema.json'
|
||||
|
||||
export function isAuthoredRegistryEntry(entry) {
|
||||
return entry?.type === 'web-bundle' || (entry !== null && typeof entry === 'object' && Object.hasOwn(entry, 'appRelease'))
|
||||
}
|
||||
|
||||
export function isApplicationEntry(entry) {
|
||||
return ['docker-app', 'native-app', 'artifact', 'web-bundle'].includes(entry?.type)
|
||||
}
|
||||
Reference in new issue
Block a user