@c-time/frelio-data-json-recipe 1.2.0 → 1.3.14

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.
package/dist/index.d.ts CHANGED
@@ -1,27 +1,347 @@
1
1
  /**
2
- * @c-time/frelio-data-json-recipe
3
- *
4
2
  * Type definitions for Frelio build data recipe.
3
+ */
4
+ /**
5
+ * カスタムフィールドのフォーマット種別(変換系)
6
+ */
7
+ type CustomFieldFormatType = 'string' | 'date' | 'number' | 'escape' | 'toc' | 'truncate' | 'stripHtml' | 'slug' | 'lowercase' | 'uppercase' | 'default' | 'count' | 'first' | 'last' | 'join' | 'url' | 'picture' | 'img' | 'srcset' | 'fileLink' | 'relationList' | 'constant';
8
+ /**
9
+ * ソート設定
10
+ */
11
+ type RecipeSort = {
12
+ /** ソート対象フィールド */
13
+ field: string;
14
+ /** ソート方向 */
15
+ direction: 'asc' | 'desc';
16
+ };
17
+ /**
18
+ * フィルター演算子
19
+ */
20
+ type RecipeFilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin' | 'regex' | 'isNull' | 'isNotNull';
21
+ /**
22
+ * フィルター設定
23
+ */
24
+ type RecipeFilter = {
25
+ /** フィルター対象フィールド */
26
+ field: string;
27
+ /** 演算子 */
28
+ operator: RecipeFilterOperator;
29
+ /** 比較値(isNull/isNotNull の場合は不要) */
30
+ value?: unknown;
31
+ };
32
+ /**
33
+ * ページネーション設定の基底型
34
+ */
35
+ type PaginationConfigBase = {
36
+ /** 1ページあたりの件数 */
37
+ perPage: number;
38
+ };
39
+ /**
40
+ * ListPageRecipe 用ページネーション設定
41
+ * outputPath にページ番号パターン(例: "articles/page/{$page}.json")を含めることを前提とする
42
+ */
43
+ type ListPageRecipePaginationConfig = PaginationConfigBase & {
44
+ /**
45
+ * ページ番号のゼロ埋め桁数
46
+ * 例: 3 なら "001", "002", ... "999"
47
+ */
48
+ numberFormatCount: number;
49
+ /**
50
+ * 1ページ目の固定パス(任意)
51
+ * 例: "articles/index.json"
52
+ * 指定しない場合は outputPath のパターンがそのまま適用される
53
+ */
54
+ startPath?: string;
55
+ };
56
+ /**
57
+ * カスタムフィールド RelationList 用ページネーション設定
58
+ * 将来の拡張に備えて予約
59
+ */
60
+ type RelationListPaginationConfig = PaginationConfigBase & {};
61
+ /**
62
+ * カスタムフィールド(変換系)
63
+ * source 式を元に値を変換・整形する
64
+ */
65
+ type CustomFieldTransform = {
66
+ /** 出力フィールド名 */
67
+ field: string;
68
+ /** 元となる式(例: "{$this.title} - {$this.subtitle}") */
69
+ source: string;
70
+ /** フォーマット種別 */
71
+ type: Exclude<CustomFieldFormatType, 'relationList' | 'constant'>;
72
+ /** フォーマット文字列(例: "YYYY年MM月DD日", "#,###円") */
73
+ format?: string;
74
+ /** truncate用の文字数 */
75
+ length?: number;
76
+ /** truncate用の末尾文字列(デフォルト: "...") */
77
+ suffix?: string;
78
+ /** join用の区切り文字(デフォルト: ", ") */
79
+ separator?: string;
80
+ /** default用のデフォルト値 */
81
+ defaultValue?: string;
82
+ };
83
+ /**
84
+ * カスタムフィールド(RelationList)
85
+ * 任意のコンテンツタイプのリストを参照し、埋め込む
86
+ * RecipeInclude に似た構造を持つ
87
+ */
88
+ type CustomFieldRelationList = {
89
+ /** 出力フィールド名 */
90
+ field: string;
91
+ /** フォーマット種別(relationList 固定) */
92
+ type: 'relationList';
93
+ /** 参照先コンテンツタイプID */
94
+ contentTypeId: string;
95
+ /** 最大件数 */
96
+ limit?: number;
97
+ /** スキップ件数 */
98
+ offset?: number;
99
+ /** ソート設定 */
100
+ sort?: RecipeSort | RecipeSort[];
101
+ /** フィルター設定 */
102
+ filters?: RecipeFilter[];
103
+ /** 取得するフィールド(null = 全て) */
104
+ listFields?: string[] | null;
105
+ /** リレーション展開設定 */
106
+ expand?: RelationExpand[];
107
+ /** ネストしたカスタムフィールド */
108
+ customFields?: CustomField[];
109
+ /** ページネーション設定(任意) */
110
+ pagination?: RelationListPaginationConfig;
111
+ };
112
+ /**
113
+ * カスタムフィールド(定数)
114
+ * コンテンツに依存しない固定値を出力する
115
+ */
116
+ type CustomFieldConstant = {
117
+ /** 出力フィールド名 */
118
+ field: string;
119
+ /** フォーマット種別(constant 固定) */
120
+ type: 'constant';
121
+ /** 固定値(string, number, boolean, array, object) */
122
+ value: unknown;
123
+ };
124
+ /**
125
+ * カスタムフィールド設定
126
+ * 変換系(CustomFieldTransform)、RelationList(CustomFieldRelationList)、定数(CustomFieldConstant)のユニオン型
127
+ */
128
+ type CustomField = CustomFieldTransform | CustomFieldRelationList | CustomFieldConstant;
129
+ /**
130
+ * Relation 展開設定
131
+ * リレーションフィールドを展開し、さらにネストした relation も展開可能
132
+ * 入れ子で「取得フィールド」「カスタムフィールド」「並び替え」「オフセット」等を設定可能
133
+ */
134
+ type RelationExpand = {
135
+ /** relation フィールド名 */
136
+ field: string;
137
+ /** 含めるフィールド(undefined = 全て) */
138
+ fields?: string[];
139
+ /** カスタムフィールド定義 */
140
+ customFields?: CustomField[];
141
+ /** ソート設定 */
142
+ sort?: RecipeSort | RecipeSort[];
143
+ /** 取得件数 */
144
+ limit?: number;
145
+ /** スキップ件数 */
146
+ offset?: number;
147
+ /** フィルター設定 */
148
+ filters?: RecipeFilter[];
149
+ /** ネストした展開設定(参照先の relation をさらに展開する場合) */
150
+ expand?: RelationExpand[];
151
+ };
152
+ /**
153
+ * 親をたどるリピート設定
154
+ * カテゴリ階層などで親をたどってパスを生成する
155
+ */
156
+ type RecipeRepeat = {
157
+ /** 変数名(例: "parent")→ {$parent.xxx} でアクセス */
158
+ as: string;
159
+ /** たどる relation フィールド名(例: "parentCategory") */
160
+ field: string;
161
+ /** リピート時の出力パス(例: "{$parent.slug}/{$this.slug}/index.json") */
162
+ outputPath: string;
163
+ };
164
+ /**
165
+ * 詳細データ設定
166
+ * 個別コンテンツの詳細データを生成するための設定
167
+ */
168
+ type DetailPageRecipe = {
169
+ type: 'detail';
170
+ /** 出力パス(例: "article/{$this.slug}.json") */
171
+ outputPath: string;
172
+ /** テンプレートファイルのパス */
173
+ templatePath: string;
174
+ /** リレーション展開設定 */
175
+ expand?: RelationExpand[];
176
+ /** 親をたどるリピート設定 */
177
+ repeat?: RecipeRepeat;
178
+ /** カスタムフィールド定義 */
179
+ customFields?: CustomField[];
180
+ /** 追加で含めるデータ */
181
+ include?: {
182
+ /** サイト設定を含める */
183
+ site?: boolean;
184
+ };
185
+ };
186
+ /**
187
+ * 一覧データ設定の共通プロパティ(内部用)
188
+ */
189
+ type ListPageRecipeBase = {
190
+ type: 'list';
191
+ /** 出力パス(例: "articles/index.json" または "articles/page/{$page}.json") */
192
+ outputPath: string;
193
+ /** テンプレートファイルのパス */
194
+ templatePath: string;
195
+ /** スキップ件数 */
196
+ offset?: number;
197
+ /** ソート設定(単一または複数) */
198
+ sort?: RecipeSort | RecipeSort[];
199
+ /** フィルター設定 */
200
+ filters?: RecipeFilter[];
201
+ /** カスタムフィールド定義 */
202
+ customFields?: CustomField[];
203
+ };
204
+ /**
205
+ * 一覧データ設定(ページネーション無効)
206
+ * - listFields で出力フィールドを制御
207
+ * - expand でリレーションを展開
208
+ */
209
+ type ListPageRecipeWithoutPagination = ListPageRecipeBase & {
210
+ pagination?: undefined;
211
+ /** 最大件数 */
212
+ limit?: number;
213
+ /** 一覧に含めるフィールド(null = 全て) */
214
+ listFields?: string[] | null;
215
+ /** リレーション展開設定 */
216
+ expand?: RelationExpand[];
217
+ };
218
+ /**
219
+ * 一覧データ設定(ページネーション有効)
5
220
  *
6
- * @example
7
- * ```typescript
8
- * import type { FrelioBuildDataRecipe } from '@c-time/frelio-data-json-recipe'
9
- *
10
- * const recipe: FrelioBuildDataRecipe = {
11
- * version: '1.0',
12
- * contentTypes: {
13
- * article: {
14
- * details: [{ type: 'detail', outputPath: 'article/{$this.slug}.json', templatePath: 'article/detail.html' }],
15
- * lists: [{ type: 'list', outputPath: 'articles/index.json', templatePath: 'article/list.html' }]
16
- * }
17
- * },
18
- * lastUpdatedAt: '2024-01-01T00:00:00Z',
19
- * lastUpdatedBy: 'user'
221
+ * ページネーション有効時の出力構造は固定:
222
+ * {
223
+ * "nextPage": "articles/page-002.json",
224
+ * "prevPage": null,
225
+ * "pageNumber": 1,
226
+ * "totalPages": 10,
227
+ * "totalItems": 95,
228
+ * "pagedItems": [ ... ]
20
229
  * }
21
- * ```
22
230
  *
23
- * @packageDocumentation
231
+ * - listFields は使用しない(pagedItems の構造に固定)
232
+ * - items.fields / items.expand で pagedItems 内のアイテムに対する設定を行う
233
+ */
234
+ type ListPageRecipeWithPagination = ListPageRecipeBase & {
235
+ pagination: ListPageRecipePaginationConfig;
236
+ /** pagedItems に適用する設定 */
237
+ items?: {
238
+ /** 一覧に含めるフィールド(null = 全て) */
239
+ fields?: string[] | null;
240
+ /** リレーション展開設定 */
241
+ expand?: RelationExpand[];
242
+ };
243
+ };
244
+ /**
245
+ * 一覧データ設定
246
+ * コンテンツの一覧データを生成するための設定
247
+ */
248
+ type ListPageRecipe = ListPageRecipeWithoutPagination | ListPageRecipeWithPagination;
249
+ /**
250
+ * 固定ページレシピ(単体固定モード)
251
+ * 1つのJSONファイルを出力
252
+ */
253
+ type StaticPageRecipe = {
254
+ type: 'static';
255
+ /** 出力パス(例: "site-config.json") */
256
+ outputPath: string;
257
+ /** テンプレートファイルのパス */
258
+ templatePath: string;
259
+ /** カスタムフィールド定義 */
260
+ customFields?: CustomField[];
261
+ };
262
+ /**
263
+ * コンテンツタイプ別レシピ
264
+ */
265
+ type ContentTypeRecipe = {
266
+ /** 詳細データ設定(複数可:通常版、AMP版、印刷用など) */
267
+ details?: DetailPageRecipe[];
268
+ /** 一覧データ設定(複数可) */
269
+ lists?: ListPageRecipe[];
270
+ };
271
+ /**
272
+ * テンプレートのパーツ化ファイル定義
273
+ * パーツファイルの変更が影響するテンプレートを定義
274
+ * 例: { "_parts/*.html": ["*"] } → パーツ変更で全ビルド
275
+ */
276
+ type TemplateIncludes = {
277
+ /** キー: パーツファイルのglobパターン、値: 影響を受けるテンプレートパス配列("*"で全て) */
278
+ [partsPattern: string]: string[];
279
+ };
280
+ /**
281
+ * 目次エントリ(toc フォーマットの出力形式)
282
+ */
283
+ type TocEntry = {
284
+ /** 見出しレベル(1-6) */
285
+ level: number;
286
+ /** 見出しのID属性 */
287
+ id: string;
288
+ /** 見出しのテキスト */
289
+ text: string;
290
+ };
291
+ /**
292
+ * ページネーション有効時の出力 JSON 構造
293
+ */
294
+ type PaginatedListOutput<T = unknown> = {
295
+ /** 現在のページ番号(1始まり) */
296
+ currentPageNumber: number;
297
+ /** 総ページ数 */
298
+ totalPagesCount: number;
299
+ /** 総アイテム数 */
300
+ totalItemsCount: number;
301
+ /** このページのアイテム配列 */
302
+ pagedItems: T[];
303
+ };
304
+ /**
305
+ * サイト全体のビルドデータレシピ(メタデータ含む)
306
+ */
307
+ type FrelioBuildDataRecipe = {
308
+ /** バージョン */
309
+ version: '1.0';
310
+ /** コンテンツタイプ別レシピ */
311
+ contentTypes: Record<string, ContentTypeRecipe>;
312
+ /** 固定ページレシピ */
313
+ staticPages?: StaticPageRecipe[];
314
+ /** テンプレートパーツ依存関係 */
315
+ templateIncludes?: TemplateIncludes;
316
+ /** 最終更新日時 */
317
+ lastUpdatedAt: string;
318
+ /** 最終更新者 */
319
+ lastUpdatedBy: string;
320
+ };
321
+
322
+ /**
323
+ * Type guard functions for Frelio build data recipe.
324
+ */
325
+
326
+ /**
327
+ * ListPageRecipe がページネーション有効かどうかを判定
328
+ */
329
+ declare function isListPageRecipeWithPagination(recipe: ListPageRecipe): recipe is ListPageRecipeWithPagination;
330
+ /**
331
+ * ListPageRecipe がページネーション無効かどうかを判定
332
+ */
333
+ declare function isListPageRecipeWithoutPagination(recipe: ListPageRecipe): recipe is ListPageRecipeWithoutPagination;
334
+ /**
335
+ * CustomField が定数(Constant)かどうかを判定
336
+ */
337
+ declare function isCustomFieldConstant(field: CustomField): field is CustomFieldConstant;
338
+ /**
339
+ * CustomField が RelationList かどうかを判定
340
+ */
341
+ declare function isCustomFieldRelationList(field: CustomField): field is CustomFieldRelationList;
342
+ /**
343
+ * CustomField が変換系(Transform)かどうかを判定
24
344
  */
25
- export type { CustomFieldFormatType, CustomFieldTransform, CustomFieldRelationList, CustomField, RecipeSort, RecipeFilterOperator, RecipeFilter, PaginationConfigBase, ListPageRecipePaginationConfig, RelationListPaginationConfig, RelationExpand, RecipeRepeat, DetailPageRecipe, ListPageRecipeWithoutPagination, ListPageRecipeWithPagination, ListPageRecipe, StaticPageRecipe, ContentTypeRecipe, TemplateIncludes, TocEntry, PaginatedListOutput, FrelioBuildDataRecipe, } from './types.js';
26
- export { isListPageRecipeWithPagination, isListPageRecipeWithoutPagination, isCustomFieldRelationList, isCustomFieldTransform, } from './guards.js';
27
- //# sourceMappingURL=index.d.ts.map
345
+ declare function isCustomFieldTransform(field: CustomField): field is CustomFieldTransform;
346
+
347
+ export { type ContentTypeRecipe, type CustomField, type CustomFieldConstant, type CustomFieldFormatType, type CustomFieldRelationList, type CustomFieldTransform, type DetailPageRecipe, type FrelioBuildDataRecipe, type ListPageRecipe, type ListPageRecipePaginationConfig, type ListPageRecipeWithPagination, type ListPageRecipeWithoutPagination, type PaginatedListOutput, type PaginationConfigBase, type RecipeFilter, type RecipeFilterOperator, type RecipeRepeat, type RecipeSort, type RelationExpand, type RelationListPaginationConfig, type StaticPageRecipe, type TemplateIncludes, type TocEntry, isCustomFieldConstant, isCustomFieldRelationList, isCustomFieldTransform, isListPageRecipeWithPagination, isListPageRecipeWithoutPagination };
package/dist/index.js CHANGED
@@ -1,27 +1,20 @@
1
- /**
2
- * @c-time/frelio-data-json-recipe
3
- *
4
- * Type definitions for Frelio build data recipe.
5
- *
6
- * @example
7
- * ```typescript
8
- * import type { FrelioBuildDataRecipe } from '@c-time/frelio-data-json-recipe'
9
- *
10
- * const recipe: FrelioBuildDataRecipe = {
11
- * version: '1.0',
12
- * contentTypes: {
13
- * article: {
14
- * details: [{ type: 'detail', outputPath: 'article/{$this.slug}.json', templatePath: 'article/detail.html' }],
15
- * lists: [{ type: 'list', outputPath: 'articles/index.json', templatePath: 'article/list.html' }]
16
- * }
17
- * },
18
- * lastUpdatedAt: '2024-01-01T00:00:00Z',
19
- * lastUpdatedBy: 'user'
20
- * }
21
- * ```
22
- *
23
- * @packageDocumentation
24
- */
25
- // Type guards
26
- export { isListPageRecipeWithPagination, isListPageRecipeWithoutPagination, isCustomFieldRelationList, isCustomFieldTransform, } from './guards.js';
1
+ // src/guards.ts
2
+ function isListPageRecipeWithPagination(recipe) {
3
+ return recipe.pagination !== void 0;
4
+ }
5
+ function isListPageRecipeWithoutPagination(recipe) {
6
+ return recipe.pagination === void 0;
7
+ }
8
+ function isCustomFieldConstant(field) {
9
+ return field.type === "constant";
10
+ }
11
+ function isCustomFieldRelationList(field) {
12
+ return field.type === "relationList";
13
+ }
14
+ function isCustomFieldTransform(field) {
15
+ return field.type !== "relationList" && field.type !== "constant";
16
+ }
17
+
18
+ export { isCustomFieldConstant, isCustomFieldRelationList, isCustomFieldTransform, isListPageRecipeWithPagination, isListPageRecipeWithoutPagination };
19
+ //# sourceMappingURL=index.js.map
27
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAoCH,cAAc;AACd,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,aAAa,CAAA"}
1
+ {"version":3,"sources":["../src/guards.ts"],"names":[],"mappings":";AAiBO,SAAS,+BACd,MAAA,EACwC;AACxC,EAAA,OAAO,OAAO,UAAA,KAAe,MAAA;AAC/B;AAKO,SAAS,kCACd,MAAA,EAC2C;AAC3C,EAAA,OAAO,OAAO,UAAA,KAAe,MAAA;AAC/B;AAKO,SAAS,sBACd,KAAA,EAC8B;AAC9B,EAAA,OAAO,MAAM,IAAA,KAAS,UAAA;AACxB;AAKO,SAAS,0BACd,KAAA,EACkC;AAClC,EAAA,OAAO,MAAM,IAAA,KAAS,cAAA;AACxB;AAKO,SAAS,uBACd,KAAA,EAC+B;AAC/B,EAAA,OAAO,KAAA,CAAM,IAAA,KAAS,cAAA,IAAkB,KAAA,CAAM,IAAA,KAAS,UAAA;AACzD","file":"index.js","sourcesContent":["/**\n * Type guard functions for Frelio build data recipe.\n */\n\nimport type {\n ListPageRecipe,\n ListPageRecipeWithPagination,\n ListPageRecipeWithoutPagination,\n CustomField,\n CustomFieldConstant,\n CustomFieldRelationList,\n CustomFieldTransform,\n} from './types.js'\n\n/**\n * ListPageRecipe がページネーション有効かどうかを判定\n */\nexport function isListPageRecipeWithPagination(\n recipe: ListPageRecipe\n): recipe is ListPageRecipeWithPagination {\n return recipe.pagination !== undefined\n}\n\n/**\n * ListPageRecipe がページネーション無効かどうかを判定\n */\nexport function isListPageRecipeWithoutPagination(\n recipe: ListPageRecipe\n): recipe is ListPageRecipeWithoutPagination {\n return recipe.pagination === undefined\n}\n\n/**\n * CustomField が定数(Constant)かどうかを判定\n */\nexport function isCustomFieldConstant(\n field: CustomField\n): field is CustomFieldConstant {\n return field.type === 'constant'\n}\n\n/**\n * CustomField が RelationList かどうかを判定\n */\nexport function isCustomFieldRelationList(\n field: CustomField\n): field is CustomFieldRelationList {\n return field.type === 'relationList'\n}\n\n/**\n * CustomField が変換系(Transform)かどうかを判定\n */\nexport function isCustomFieldTransform(\n field: CustomField\n): field is CustomFieldTransform {\n return field.type !== 'relationList' && field.type !== 'constant'\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-time/frelio-data-json-recipe",
3
- "version": "1.2.0",
3
+ "version": "1.3.14",
4
4
  "description": "Type definitions for frelio data JSON recipe",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -11,15 +11,24 @@
11
11
  "import": "./dist/index.js"
12
12
  }
13
13
  },
14
+ "sideEffects": false,
14
15
  "files": [
15
16
  "dist",
16
17
  "README.md"
17
18
  ],
18
19
  "scripts": {
19
- "build": "tsc -p tsconfig.build.json",
20
- "dev": "tsc -p tsconfig.build.json --watch",
20
+ "build": "tsup",
21
+ "dev": "tsup --watch",
21
22
  "prepublishOnly": "npm run build"
22
23
  },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/c-time/frelio.git",
30
+ "directory": "packages/data-json-recipe"
31
+ },
23
32
  "keywords": [
24
33
  "frelio",
25
34
  "recipe",
@@ -29,6 +38,7 @@
29
38
  ],
30
39
  "license": "MIT",
31
40
  "devDependencies": {
41
+ "tsup": "^8.5.0",
32
42
  "typescript": "^5.7.0"
33
43
  },
34
44
  "engines": {
package/README.md DELETED
@@ -1,81 +0,0 @@
1
- # @c-time/frelio-data-json-recipe
2
-
3
- Type definitions for Frelio build data recipe.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @c-time/frelio-data-json-recipe
9
- ```
10
-
11
- ## Usage
12
-
13
- ```typescript
14
- import type { FrelioBuildDataRecipe } from '@c-time/frelio-data-json-recipe'
15
-
16
- const recipe: FrelioBuildDataRecipe = {
17
- version: '1.0',
18
- contentTypes: {
19
- article: {
20
- details: [{
21
- type: 'detail',
22
- outputPath: 'article/{$this.slug}.json',
23
- templatePath: 'article/detail.html'
24
- }],
25
- lists: [{
26
- type: 'list',
27
- outputPath: 'articles/index.json',
28
- templatePath: 'article/list.html'
29
- }]
30
- }
31
- },
32
- lastUpdatedAt: '2024-01-01T00:00:00Z',
33
- lastUpdatedBy: 'user'
34
- }
35
- ```
36
-
37
- ## Type Guards
38
-
39
- ```typescript
40
- import {
41
- isListPageRecipeWithPagination,
42
- isCustomFieldRelationList
43
- } from '@c-time/frelio-data-json-recipe'
44
-
45
- // Check if list recipe has pagination
46
- if (isListPageRecipeWithPagination(listRecipe)) {
47
- console.log(listRecipe.pagination.perPage)
48
- }
49
-
50
- // Check if custom field is relation list
51
- if (isCustomFieldRelationList(customField)) {
52
- console.log(customField.contentTypeId)
53
- }
54
- ```
55
-
56
- ## Types
57
-
58
- ### Main Types
59
-
60
- - `FrelioBuildDataRecipe` - Site-wide build data recipe
61
- - `ContentTypeRecipe` - Per content type recipe
62
- - `DetailPageRecipe` - Detail page recipe
63
- - `ListPageRecipe` - List page recipe (with/without pagination)
64
- - `StaticPageRecipe` - Static page recipe
65
-
66
- ### Custom Field Types
67
-
68
- - `CustomField` - Union of transform and relation list
69
- - `CustomFieldTransform` - Transform-based custom field
70
- - `CustomFieldRelationList` - Relation list custom field
71
-
72
- ### Configuration Types
73
-
74
- - `RecipeSort` - Sort configuration
75
- - `RecipeFilter` - Filter configuration
76
- - `RelationExpand` - Relation expand configuration
77
- - `PaginatedListOutput<T>` - Paginated list output structure
78
-
79
- ## License
80
-
81
- MIT
package/dist/guards.d.ts DELETED
@@ -1,21 +0,0 @@
1
- /**
2
- * Type guard functions for Frelio build data recipe.
3
- */
4
- import type { ListPageRecipe, ListPageRecipeWithPagination, ListPageRecipeWithoutPagination, CustomField, CustomFieldRelationList, CustomFieldTransform } from './types.js';
5
- /**
6
- * ListPageRecipe がページネーション有効かどうかを判定
7
- */
8
- export declare function isListPageRecipeWithPagination(recipe: ListPageRecipe): recipe is ListPageRecipeWithPagination;
9
- /**
10
- * ListPageRecipe がページネーション無効かどうかを判定
11
- */
12
- export declare function isListPageRecipeWithoutPagination(recipe: ListPageRecipe): recipe is ListPageRecipeWithoutPagination;
13
- /**
14
- * CustomField が RelationList かどうかを判定
15
- */
16
- export declare function isCustomFieldRelationList(field: CustomField): field is CustomFieldRelationList;
17
- /**
18
- * CustomField が変換系(Transform)かどうかを判定
19
- */
20
- export declare function isCustomFieldTransform(field: CustomField): field is CustomFieldTransform;
21
- //# sourceMappingURL=guards.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../src/guards.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,4BAA4B,EAC5B,+BAA+B,EAC/B,WAAW,EACX,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,YAAY,CAAA;AAEnB;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,cAAc,GACrB,MAAM,IAAI,4BAA4B,CAExC;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,cAAc,GACrB,MAAM,IAAI,+BAA+B,CAE3C;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,WAAW,GACjB,KAAK,IAAI,uBAAuB,CAElC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,WAAW,GACjB,KAAK,IAAI,oBAAoB,CAE/B"}
package/dist/guards.js DELETED
@@ -1,28 +0,0 @@
1
- /**
2
- * Type guard functions for Frelio build data recipe.
3
- */
4
- /**
5
- * ListPageRecipe がページネーション有効かどうかを判定
6
- */
7
- export function isListPageRecipeWithPagination(recipe) {
8
- return recipe.pagination !== undefined;
9
- }
10
- /**
11
- * ListPageRecipe がページネーション無効かどうかを判定
12
- */
13
- export function isListPageRecipeWithoutPagination(recipe) {
14
- return recipe.pagination === undefined;
15
- }
16
- /**
17
- * CustomField が RelationList かどうかを判定
18
- */
19
- export function isCustomFieldRelationList(field) {
20
- return field.type === 'relationList';
21
- }
22
- /**
23
- * CustomField が変換系(Transform)かどうかを判定
24
- */
25
- export function isCustomFieldTransform(field) {
26
- return field.type !== 'relationList';
27
- }
28
- //# sourceMappingURL=guards.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guards.js","sourceRoot":"","sources":["../src/guards.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC5C,MAAsB;IAEtB,OAAO,MAAM,CAAC,UAAU,KAAK,SAAS,CAAA;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAC/C,MAAsB;IAEtB,OAAO,MAAM,CAAC,UAAU,KAAK,SAAS,CAAA;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAkB;IAElB,OAAO,KAAK,CAAC,IAAI,KAAK,cAAc,CAAA;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAAkB;IAElB,OAAO,KAAK,CAAC,IAAI,KAAK,cAAc,CAAA;AACtC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,YAAY,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,WAAW,EAEX,UAAU,EACV,oBAAoB,EACpB,YAAY,EAEZ,oBAAoB,EACpB,8BAA8B,EAC9B,4BAA4B,EAE5B,cAAc,EACd,YAAY,EAEZ,gBAAgB,EAChB,+BAA+B,EAC/B,4BAA4B,EAC5B,cAAc,EACd,gBAAgB,EAEhB,iBAAiB,EACjB,gBAAgB,EAEhB,QAAQ,EACR,mBAAmB,EAEnB,qBAAqB,GACtB,MAAM,YAAY,CAAA;AAGnB,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,aAAa,CAAA"}
package/dist/types.d.ts DELETED
@@ -1,310 +0,0 @@
1
- /**
2
- * Type definitions for Frelio build data recipe.
3
- */
4
- /**
5
- * カスタムフィールドのフォーマット種別(変換系)
6
- */
7
- export type CustomFieldFormatType = 'string' | 'date' | 'number' | 'escape' | 'toc' | 'truncate' | 'stripHtml' | 'slug' | 'lowercase' | 'uppercase' | 'default' | 'count' | 'first' | 'last' | 'join' | 'url' | 'picture' | 'img' | 'srcset' | 'fileLink' | 'relationList';
8
- /**
9
- * ソート設定
10
- */
11
- export type RecipeSort = {
12
- /** ソート対象フィールド */
13
- field: string;
14
- /** ソート方向 */
15
- direction: 'asc' | 'desc';
16
- };
17
- /**
18
- * フィルター演算子
19
- */
20
- export type RecipeFilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin' | 'regex' | 'isNull' | 'isNotNull';
21
- /**
22
- * フィルター設定
23
- */
24
- export type RecipeFilter = {
25
- /** フィルター対象フィールド */
26
- field: string;
27
- /** 演算子 */
28
- operator: RecipeFilterOperator;
29
- /** 比較値(isNull/isNotNull の場合は不要) */
30
- value?: unknown;
31
- };
32
- /**
33
- * ページネーション設定の基底型
34
- */
35
- export type PaginationConfigBase = {
36
- /** 1ページあたりの件数 */
37
- perPage: number;
38
- };
39
- /**
40
- * ListPageRecipe 用ページネーション設定
41
- * outputPath にページ番号パターン(例: "articles/page/{$page}.json")を含めることを前提とする
42
- */
43
- export type ListPageRecipePaginationConfig = PaginationConfigBase & {
44
- /**
45
- * ページ番号のゼロ埋め桁数
46
- * 例: 3 なら "001", "002", ... "999"
47
- */
48
- numberFormatCount: number;
49
- /**
50
- * 1ページ目の固定パス(任意)
51
- * 例: "articles/index.json"
52
- * 指定しない場合は outputPath のパターンがそのまま適用される
53
- */
54
- startPath?: string;
55
- };
56
- /**
57
- * カスタムフィールド RelationList 用ページネーション設定
58
- * 将来の拡張に備えて予約
59
- */
60
- export type RelationListPaginationConfig = PaginationConfigBase & {};
61
- /**
62
- * カスタムフィールド(変換系)
63
- * source 式を元に値を変換・整形する
64
- */
65
- export type CustomFieldTransform = {
66
- /** 出力フィールド名 */
67
- field: string;
68
- /** 元となる式(例: "{$this.title} - {$this.subtitle}") */
69
- source: string;
70
- /** フォーマット種別 */
71
- type?: Exclude<CustomFieldFormatType, 'relationList'>;
72
- /** フォーマット文字列(例: "YYYY年MM月DD日", "#,###円") */
73
- format?: string;
74
- /** truncate用の文字数 */
75
- length?: number;
76
- /** truncate用の末尾文字列(デフォルト: "...") */
77
- suffix?: string;
78
- /** join用の区切り文字(デフォルト: ", ") */
79
- separator?: string;
80
- /** default用のデフォルト値 */
81
- defaultValue?: string;
82
- };
83
- /**
84
- * カスタムフィールド(RelationList)
85
- * 任意のコンテンツタイプのリストを参照し、埋め込む
86
- * RecipeInclude に似た構造を持つ
87
- */
88
- export type CustomFieldRelationList = {
89
- /** 出力フィールド名 */
90
- field: string;
91
- /** フォーマット種別(relationList 固定) */
92
- type: 'relationList';
93
- /** 参照先コンテンツタイプID */
94
- contentTypeId: string;
95
- /** 最大件数 */
96
- limit?: number;
97
- /** スキップ件数 */
98
- offset?: number;
99
- /** ソート設定 */
100
- sort?: RecipeSort | RecipeSort[];
101
- /** フィルター設定 */
102
- filters?: RecipeFilter[];
103
- /** 取得するフィールド(null = 全て) */
104
- listFields?: string[] | null;
105
- /** リレーション展開設定 */
106
- expand?: RelationExpand[];
107
- /** ネストしたカスタムフィールド */
108
- customFields?: CustomField[];
109
- /** ページネーション設定(任意) */
110
- pagination?: RelationListPaginationConfig;
111
- };
112
- /**
113
- * カスタムフィールド設定
114
- * 変換系(CustomFieldTransform)または RelationList(CustomFieldRelationList)のユニオン型
115
- */
116
- export type CustomField = CustomFieldTransform | CustomFieldRelationList;
117
- /**
118
- * Relation 展開設定
119
- * リレーションフィールドを展開し、さらにネストした relation も展開可能
120
- * 入れ子で「取得フィールド」「カスタムフィールド」「並び替え」「オフセット」等を設定可能
121
- */
122
- export type RelationExpand = {
123
- /** relation フィールド名 */
124
- field: string;
125
- /** 含めるフィールド(undefined = 全て) */
126
- fields?: string[];
127
- /** カスタムフィールド定義 */
128
- customFields?: CustomField[];
129
- /** ソート設定 */
130
- sort?: RecipeSort | RecipeSort[];
131
- /** 取得件数 */
132
- limit?: number;
133
- /** スキップ件数 */
134
- offset?: number;
135
- /** フィルター設定 */
136
- filters?: RecipeFilter[];
137
- /** ネストした展開設定(参照先の relation をさらに展開する場合) */
138
- expand?: RelationExpand[];
139
- };
140
- /**
141
- * 親をたどるリピート設定
142
- * カテゴリ階層などで親をたどってパスを生成する
143
- */
144
- export type RecipeRepeat = {
145
- /** 変数名(例: "parent")→ {$parent.xxx} でアクセス */
146
- as: string;
147
- /** たどる relation フィールド名(例: "parentCategory") */
148
- field: string;
149
- /** リピート時の出力パス(例: "{$parent.slug}/{$this.slug}/index.json") */
150
- outputPath: string;
151
- };
152
- /**
153
- * 詳細データ設定
154
- * 個別コンテンツの詳細データを生成するための設定
155
- */
156
- export type DetailPageRecipe = {
157
- type: 'detail';
158
- /** 出力パス(例: "article/{$this.slug}.json") */
159
- outputPath: string;
160
- /** テンプレートファイルのパス */
161
- templatePath: string;
162
- /** リレーション展開設定 */
163
- expand?: RelationExpand[];
164
- /** 親をたどるリピート設定 */
165
- repeat?: RecipeRepeat;
166
- /** カスタムフィールド定義 */
167
- customFields?: CustomField[];
168
- /** 追加で含めるデータ */
169
- include?: {
170
- /** サイト設定を含める */
171
- site?: boolean;
172
- };
173
- };
174
- /**
175
- * 一覧データ設定の共通プロパティ(内部用)
176
- */
177
- type ListPageRecipeBase = {
178
- type: 'list';
179
- /** 出力パス(例: "articles/index.json" または "articles/page/{$page}.json") */
180
- outputPath: string;
181
- /** テンプレートファイルのパス */
182
- templatePath: string;
183
- /** スキップ件数 */
184
- offset?: number;
185
- /** ソート設定(単一または複数) */
186
- sort?: RecipeSort | RecipeSort[];
187
- /** フィルター設定 */
188
- filters?: RecipeFilter[];
189
- /** カスタムフィールド定義 */
190
- customFields?: CustomField[];
191
- };
192
- /**
193
- * 一覧データ設定(ページネーション無効)
194
- * - listFields で出力フィールドを制御
195
- * - expand でリレーションを展開
196
- */
197
- export type ListPageRecipeWithoutPagination = ListPageRecipeBase & {
198
- pagination?: undefined;
199
- /** 最大件数 */
200
- limit?: number;
201
- /** 一覧に含めるフィールド(null = 全て) */
202
- listFields?: string[] | null;
203
- /** リレーション展開設定 */
204
- expand?: RelationExpand[];
205
- };
206
- /**
207
- * 一覧データ設定(ページネーション有効)
208
- *
209
- * ページネーション有効時の出力構造は固定:
210
- * {
211
- * "nextPage": "articles/page-002.json",
212
- * "prevPage": null,
213
- * "pageNumber": 1,
214
- * "totalPages": 10,
215
- * "totalItems": 95,
216
- * "pagedItems": [ ... ]
217
- * }
218
- *
219
- * - listFields は使用しない(pagedItems の構造に固定)
220
- * - items.fields / items.expand で pagedItems 内のアイテムに対する設定を行う
221
- */
222
- export type ListPageRecipeWithPagination = ListPageRecipeBase & {
223
- pagination: ListPageRecipePaginationConfig;
224
- /** pagedItems に適用する設定 */
225
- items?: {
226
- /** 一覧に含めるフィールド(null = 全て) */
227
- fields?: string[] | null;
228
- /** リレーション展開設定 */
229
- expand?: RelationExpand[];
230
- };
231
- };
232
- /**
233
- * 一覧データ設定
234
- * コンテンツの一覧データを生成するための設定
235
- */
236
- export type ListPageRecipe = ListPageRecipeWithoutPagination | ListPageRecipeWithPagination;
237
- /**
238
- * 固定ページレシピ(単体固定モード)
239
- * 1つのJSONファイルを出力
240
- */
241
- export type StaticPageRecipe = {
242
- type: 'static';
243
- /** 出力パス(例: "site-config.json") */
244
- outputPath: string;
245
- /** テンプレートファイルのパス */
246
- templatePath: string;
247
- /** カスタムフィールド定義 */
248
- customFields?: CustomField[];
249
- };
250
- /**
251
- * コンテンツタイプ別レシピ
252
- */
253
- export type ContentTypeRecipe = {
254
- /** 詳細データ設定(複数可:通常版、AMP版、印刷用など) */
255
- details?: DetailPageRecipe[];
256
- /** 一覧データ設定(複数可) */
257
- lists?: ListPageRecipe[];
258
- };
259
- /**
260
- * テンプレートのパーツ化ファイル定義
261
- * パーツファイルの変更が影響するテンプレートを定義
262
- * 例: { "_parts/*.html": ["*"] } → パーツ変更で全ビルド
263
- */
264
- export type TemplateIncludes = {
265
- /** キー: パーツファイルのglobパターン、値: 影響を受けるテンプレートパス配列("*"で全て) */
266
- [partsPattern: string]: string[];
267
- };
268
- /**
269
- * 目次エントリ(toc フォーマットの出力形式)
270
- */
271
- export type TocEntry = {
272
- /** 見出しレベル(1-6) */
273
- level: number;
274
- /** 見出しのID属性 */
275
- id: string;
276
- /** 見出しのテキスト */
277
- text: string;
278
- };
279
- /**
280
- * ページネーション有効時の出力 JSON 構造
281
- */
282
- export type PaginatedListOutput<T = unknown> = {
283
- /** 現在のページ番号(1始まり) */
284
- currentPageNumber: number;
285
- /** 総ページ数 */
286
- totalPagesCount: number;
287
- /** 総アイテム数 */
288
- totalItemsCount: number;
289
- /** このページのアイテム配列 */
290
- pagedItems: T[];
291
- };
292
- /**
293
- * サイト全体のビルドデータレシピ(メタデータ含む)
294
- */
295
- export type FrelioBuildDataRecipe = {
296
- /** バージョン */
297
- version: '1.0';
298
- /** コンテンツタイプ別レシピ */
299
- contentTypes: Record<string, ContentTypeRecipe>;
300
- /** 固定ページレシピ */
301
- staticPages?: StaticPageRecipe[];
302
- /** テンプレートパーツ依存関係 */
303
- templateIncludes?: TemplateIncludes;
304
- /** 最終更新日時 */
305
- lastUpdatedAt: string;
306
- /** 最終更新者 */
307
- lastUpdatedBy: string;
308
- };
309
- export {};
310
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,UAAU,GACV,WAAW,GACX,MAAM,GACN,WAAW,GACX,WAAW,GACX,SAAS,GACT,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GAEL,SAAS,GACT,KAAK,GACL,QAAQ,GACR,UAAU,GAEV,cAAc,CAAA;AAIlB;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY;IACZ,SAAS,EAAE,KAAK,GAAG,MAAM,CAAA;CAC1B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,IAAI,GACJ,KAAK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CAAC,EAAE,CAAA;CAChB,CAAA;AAID;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY;IACZ,OAAO,EAAE,KAAK,CAAA;IACd,mBAAmB;IACnB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IAC/C,eAAe;IACf,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAChC,oBAAoB;IACpB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,aAAa;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY;IACZ,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
package/dist/types.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Type definitions for Frelio build data recipe.
3
- */
4
- export {};
5
- //# sourceMappingURL=types.js.map
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}