@notion-headless-cms/core 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import { i as memoryCache, n as MemoryDocumentOptions, r as MemoryImageOptions, t as MemoryCacheOptions } from "../memory-Ct4NDOFO.mjs";
1
+ import { i as memoryCache, n as MemoryDocumentOptions, r as MemoryImageOptions, t as MemoryCacheOptions } from "../memory-BT9rLPr1.mjs";
2
2
  export { MemoryCacheOptions, MemoryDocumentOptions, MemoryImageOptions, memoryCache };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as CachedItemMeta, c as ContentResult, i as CachedItemList, l as ImageRef, n as CMSSchemaProperties, o as StorageBinary, r as CachedItemContent, s as ContentBlock, t as BaseContentItem, u as InlineNode } from "./content-DwsfWZao.mjs";
2
- import { a as CacheAdapter, c as DataSource, d as PropertyDef, f as PropertyMap, i as memoryCache, l as InvalidateKind, o as DocumentCacheOps, p as WebhookConfig, s as ImageCacheOps, t as MemoryCacheOptions, u as InvalidateScope } from "./memory-Ct4NDOFO.mjs";
2
+ import { a as CacheAdapter, c as DataSource, d as PropertyDef, f as PropertyMap, i as memoryCache, l as InvalidateKind, o as DocumentCacheOps, p as WebhookConfig, s as ImageCacheOps, t as MemoryCacheOptions, u as InvalidateScope } from "./memory-BT9rLPr1.mjs";
3
3
  import { a as isCMSError, i as CMSErrorContext, n as CMSError, o as isCMSErrorInNamespace, r as CMSErrorCode, s as matchCMSError, t as BuiltInCMSErrorCode } from "./errors-CC_x98vG.mjs";
4
4
  import { a as Logger, i as definePlugin, n as mergeLoggers, o as CMSHooks, r as CMSPlugin, s as MaybePromise, t as mergeHooks } from "./hooks-C6F2PG8x.mjs";
5
5
 
@@ -9,6 +9,11 @@ interface PropertyDef {
9
9
  type: "title" | "richText" | "select" | "status" | "multiSelect" | "date" | "number" | "checkbox" | "url";
10
10
  /** Notion DB 上のプロパティ名(表示名)。 */
11
11
  notion: string;
12
+ /**
13
+ * status / select の選択肢一覧。CLI が `as const` で出力する。
14
+ * 型レベルで literal union を導出するためにのみ使用し、runtime では参照しない。
15
+ */
16
+ options?: readonly string[];
12
17
  }
13
18
  /** Notion DB のプロパティ一覧マップ。CLI 生成の `*Properties` の型。 */
14
19
  type PropertyMap = Record<string, PropertyDef>;
@@ -150,4 +155,4 @@ interface MemoryCacheOptions extends MemoryDocumentOptions, MemoryImageOptions {
150
155
  declare function memoryCache(options?: MemoryCacheOptions): CacheAdapter;
151
156
  //#endregion
152
157
  export { CacheAdapter as a, DataSource as c, PropertyDef as d, PropertyMap as f, memoryCache as i, InvalidateKind as l, MemoryDocumentOptions as n, DocumentCacheOps as o, WebhookConfig as p, MemoryImageOptions as r, ImageCacheOps as s, MemoryCacheOptions as t, InvalidateScope as u };
153
- //# sourceMappingURL=memory-Ct4NDOFO.d.mts.map
158
+ //# sourceMappingURL=memory-BT9rLPr1.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notion-headless-cms/core",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Core CMS engine for notion-headless-cms — fetch, transform, cache with stale-while-revalidate strategy",
5
5
  "keywords": [
6
6
  "notion",