@wato787/microcms-cli 0.1.2 → 0.1.3

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.
@@ -57,6 +57,7 @@ function resolveFieldType(field, context) {
57
57
  case 'textArea':
58
58
  case 'richEditor':
59
59
  case 'richEditorV2':
60
+ case 'richEditorOld':
60
61
  case 'date':
61
62
  return 'string';
62
63
  case 'number':
@@ -67,12 +68,17 @@ function resolveFieldType(field, context) {
67
68
  return 'MicroCMSImage';
68
69
  case 'mediaList':
69
70
  return 'MicroCMSImage[]';
71
+ case 'file':
72
+ return 'MicroCMSFile';
70
73
  case 'relation':
71
74
  return 'MicroCMSContentId';
72
75
  case 'relationList':
73
76
  return 'MicroCMSContentId[]';
74
77
  case 'select':
75
78
  return field.multipleSelect ? 'string[]' : 'string';
79
+ case 'iframe':
80
+ case 'extension':
81
+ return 'Record<string, unknown>';
76
82
  case 'custom':
77
83
  if (!field.customFieldCreatedAt) {
78
84
  return 'Record<string, unknown>';
@@ -166,6 +172,11 @@ export function renderDefinitionsFile(targets) {
166
172
  ' alt?: string;',
167
173
  '}',
168
174
  '',
175
+ 'export interface MicroCMSFile {',
176
+ ' url: string;',
177
+ ' fileSize?: number;',
178
+ '}',
179
+ '',
169
180
  'export interface MicroCMSListResponse<T> {',
170
181
  ' contents: (T & MicroCMSListContent)[];',
171
182
  ' totalCount: number;',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wato787/microcms-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "AI-friendly CLI tool for microCMS, built with Bun",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",