跳到正文
Skillpedia
API 与服务器(后端)8.1k · #12604

webiny-api-cms-catalog

它能做什么

这个技能是 Webiny 中 CMS 后端组件(包括条目、模型和分组)的查询列表。适用于编写处理 CMS 内容的后端代码的开发者。

适用场景

  • ✓需要 CMS 条目、模型或分组构建模块的导入路径的时候。
  • ✓想找到 CMS 条目生命周期某一步的事件处理器的时候。
  • ✓需要为 CMS 查找 OpenSearch 或条目过滤器构建模块的时候。

技能链接

https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/cms/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/cms/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“编写后端用例时,CMS 条目类型需要导入哪个模块?”

每周 5 个新技能,1 分钟读完。

工作原理

该技能列出各构建模块的导入语句和源文件。AI 在使用前会阅读源文件,以获取确切类型。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

API — Headless CMS

Entry, model, and group event handlers and use cases.

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills for implementation patterns

Abstractions


Name: CmsEntry Kind: type Import: import type { CmsEntry } from "webiny/api/cms/entry" Source: @webiny/api-headless-cms/types/types.ts Description: A content entry definition for and from the database.


Name: CmsEntryOpenSearchBodyModifier Import: import { CmsEntryOpenSearchBodyModifier } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchBodyModifier/index.ts


Name: CmsEntryOpenSearchFieldIndex Import: import { CmsEntryOpenSearchFieldIndex } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchFieldIndex/index.ts


Name: CmsEntryOpenSearchFieldIndexRegistry Import: import { CmsEntryOpenSearchFieldIndexRegistry } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchFieldIndex/index.ts


Name: CmsEntryOpenSearchFilter Import: import { CmsEntryOpenSearchFilter } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchFilter/index.ts


Name: CmsEntryOpenSearchFilterRegistry Import: import { CmsEntryOpenSearchFilterRegistry } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchFilter/index.ts


Name: CmsEntryOpenSearchFullTextSearch Import: import { CmsEntryOpenSearchFullTextSearch } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchFullTextSearch/index.ts


Name: CmsEntryOpenSearchQueryModifier Import: import { CmsEntryOpenSearchQueryModifier } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchQueryModifier/index.ts


Name: CmsEntryOpenSearchSortModifier Import: import { CmsEntryOpenSearchSortModifier } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchSortModifier/index.ts


Name: CmsEntryOpenSearchValueSearch Import: import { CmsEntryOpenSearchValueSearch } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchValueSearch/index.ts


Name: CmsEntryOpenSearchValueSearchRegistry Import: import { CmsEntryOpenSearchValueSearchRegistry } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchValueSearch/index.ts


Name: CmsEntryOpenSearchValuesModifier Import: import { CmsEntryOpenSearchValuesModifier } from "webiny/api/cms/opensearch" Source: @webiny/api-headless-cms-ddb-es/features/CmsEntryOpenSearchValuesModifier/index.ts


Name: CmsEntryValues Kind: type Import: import type { CmsEntryValues } from "webiny/api/cms/entry" Source: @webiny/api-headless-cms/types/types.ts Description: A content entry values definition for and from the database.


Name: CmsGraphQLSchemaSorter Import: import { CmsGraphQLSchemaSorter } from "webiny/api/cms/graphql" Source: @webiny/api-headless-cms/features/graphql/index.ts


Name: CmsGroup Kind: type Import: import type { CmsGroup } from "webiny/api/cms/group" Source: @webiny/api-headless-cms/types/modelGroup.ts Description: A representation of content model group in the database.


Name: CmsModel Kind: type Import: import type { CmsModel } from "webiny/api/cms/model" Source: @webiny/api-headless-cms/types/model.ts Description: Base CMS Model. Should not be exported and used outside of this package.


Name: CmsModelField Kind: type Import: import type { CmsModelField } from "webiny/api/cms/model" Source: @webiny/api-headless-cms/types/modelField.ts Description: A definition for content model field. This type exists on the app side as well.


Name: CmsModelFieldPatternValidator Import: `import { CmsModelFieldPatternValidator } from "webiny/a

常见问题

包含多少个构建模块?

描述中说明 Headless CMS 后端有 137 个抽象。

它会提供完整示例吗?

不会。它只提供名称、导入路径和源文件,因此详细信息需要查看源文件。

它提到了哪些类型的项目?

条目、模型和分组的事件处理器与用例。

详情

作者的原始描述

API — Headless CMS — 137 abstractions. Entry, model, and group event handlers and use cases.

repo: webiny/webiny-js

热度

GitHub 星标
8.1k
排名
#12604
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能