Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.3 KB

File metadata and controls

35 lines (22 loc) · 1.3 KB
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 14
---
name: contentstack-delivery-typescript
description: @contentstack/delivery-sdk — TypeScript CDA client, stack factory, queries, sync, cache, live preview.
---

Contentstack TypeScript Delivery SDK skill

Entry

  • contentstack.stack(config)src/stack/contentstack.ts: merges StackConfig, resolves Region → host, attaches @contentstack/core httpClient with retry handlers, returns Stack.

Structure

  • Stacksrc/stack/stack.ts: content types, entries, assets, sync, taxonomy helpers.
  • Queriessrc/query/: BaseQuery, Query, AssetQuery, TaxonomyQuery, ContentTypeQuery, GlobalFieldQuery, EntryQueryable, etc.
  • Syncsrc/sync/
  • Cachesrc/cache/ + Policy enum in types.

Extending

  • Add query methods on the appropriate class; keep param names aligned with CDA query docs.
  • Prefer delegating transport concerns to core rather than duplicating Axios logic.

Consumer packages

  • @contentstack/core — HTTP + retries
  • @contentstack/utils — utilities; re-exported where documented.

Docs

Rule shortcut

  • .cursor/rules/contentstack-delivery-typescript.mdc