@storyblok/schema 0.1.0-alpha.0
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/LICENSE +8 -0
- package/README.md +74 -0
- package/dist/generated/capi/_internal.gen.d.cts +120 -0
- package/dist/generated/capi/_internal.gen.d.mts +120 -0
- package/dist/generated/capi/types.gen.d.cts +181 -0
- package/dist/generated/capi/types.gen.d.mts +181 -0
- package/dist/generated/mapi/_internal.gen.d.cts +683 -0
- package/dist/generated/mapi/_internal.gen.d.mts +683 -0
- package/dist/generated/mapi/types.gen.d.cts +1272 -0
- package/dist/generated/mapi/types.gen.d.mts +1272 -0
- package/dist/generated/overlay/_internal.gen.d.cts +850 -0
- package/dist/generated/overlay/_internal.gen.d.mts +850 -0
- package/dist/generated/types/_utils.d.cts +7 -0
- package/dist/generated/types/_utils.d.mts +7 -0
- package/dist/generated/types/block.d.cts +46 -0
- package/dist/generated/types/block.d.mts +46 -0
- package/dist/generated/types/field.d.cts +74 -0
- package/dist/generated/types/field.d.mts +74 -0
- package/dist/generated/types/mapi-story.d.cts +29 -0
- package/dist/generated/types/mapi-story.d.mts +29 -0
- package/dist/generated/types/story.d.cts +19 -0
- package/dist/generated/types/story.d.mts +19 -0
- package/dist/helpers/create-story-helpers.cjs +42 -0
- package/dist/helpers/create-story-helpers.cjs.map +1 -0
- package/dist/helpers/create-story-helpers.d.cts +50 -0
- package/dist/helpers/create-story-helpers.d.mts +50 -0
- package/dist/helpers/create-story-helpers.mjs +42 -0
- package/dist/helpers/create-story-helpers.mjs.map +1 -0
- package/dist/helpers/define-asset-folder.cjs +46 -0
- package/dist/helpers/define-asset-folder.cjs.map +1 -0
- package/dist/helpers/define-asset-folder.d.cts +33 -0
- package/dist/helpers/define-asset-folder.d.mts +33 -0
- package/dist/helpers/define-asset-folder.mjs +43 -0
- package/dist/helpers/define-asset-folder.mjs.map +1 -0
- package/dist/helpers/define-asset.cjs +60 -0
- package/dist/helpers/define-asset.cjs.map +1 -0
- package/dist/helpers/define-asset.d.cts +32 -0
- package/dist/helpers/define-asset.d.mts +32 -0
- package/dist/helpers/define-asset.mjs +57 -0
- package/dist/helpers/define-asset.mjs.map +1 -0
- package/dist/helpers/define-block-folder.cjs +44 -0
- package/dist/helpers/define-block-folder.cjs.map +1 -0
- package/dist/helpers/define-block-folder.d.cts +34 -0
- package/dist/helpers/define-block-folder.d.mts +34 -0
- package/dist/helpers/define-block-folder.mjs +41 -0
- package/dist/helpers/define-block-folder.mjs.map +1 -0
- package/dist/helpers/define-block.cjs +51 -0
- package/dist/helpers/define-block.cjs.map +1 -0
- package/dist/helpers/define-block.d.cts +62 -0
- package/dist/helpers/define-block.d.mts +62 -0
- package/dist/helpers/define-block.mjs +48 -0
- package/dist/helpers/define-block.mjs.map +1 -0
- package/dist/helpers/define-datasource-entry.cjs +47 -0
- package/dist/helpers/define-datasource-entry.cjs.map +1 -0
- package/dist/helpers/define-datasource-entry.d.cts +49 -0
- package/dist/helpers/define-datasource-entry.d.mts +49 -0
- package/dist/helpers/define-datasource-entry.mjs +43 -0
- package/dist/helpers/define-datasource-entry.mjs.map +1 -0
- package/dist/helpers/define-datasource.cjs +34 -0
- package/dist/helpers/define-datasource.cjs.map +1 -0
- package/dist/helpers/define-datasource.d.cts +42 -0
- package/dist/helpers/define-datasource.d.mts +42 -0
- package/dist/helpers/define-datasource.mjs +31 -0
- package/dist/helpers/define-datasource.mjs.map +1 -0
- package/dist/helpers/define-field.cjs +17 -0
- package/dist/helpers/define-field.cjs.map +1 -0
- package/dist/helpers/define-field.d.cts +99 -0
- package/dist/helpers/define-field.d.mts +99 -0
- package/dist/helpers/define-field.mjs +16 -0
- package/dist/helpers/define-field.mjs.map +1 -0
- package/dist/helpers/define-internal-tag.cjs +41 -0
- package/dist/helpers/define-internal-tag.cjs.map +1 -0
- package/dist/helpers/define-internal-tag.d.cts +34 -0
- package/dist/helpers/define-internal-tag.d.mts +34 -0
- package/dist/helpers/define-internal-tag.mjs +38 -0
- package/dist/helpers/define-internal-tag.mjs.map +1 -0
- package/dist/helpers/define-link.cjs +23 -0
- package/dist/helpers/define-link.cjs.map +1 -0
- package/dist/helpers/define-link.d.cts +32 -0
- package/dist/helpers/define-link.d.mts +32 -0
- package/dist/helpers/define-link.mjs +22 -0
- package/dist/helpers/define-link.mjs.map +1 -0
- package/dist/helpers/define-preset.cjs +44 -0
- package/dist/helpers/define-preset.cjs.map +1 -0
- package/dist/helpers/define-preset.d.cts +35 -0
- package/dist/helpers/define-preset.d.mts +35 -0
- package/dist/helpers/define-preset.mjs +41 -0
- package/dist/helpers/define-preset.mjs.map +1 -0
- package/dist/helpers/define-space.cjs +47 -0
- package/dist/helpers/define-space.cjs.map +1 -0
- package/dist/helpers/define-space.d.cts +31 -0
- package/dist/helpers/define-space.d.mts +31 -0
- package/dist/helpers/define-space.mjs +44 -0
- package/dist/helpers/define-space.mjs.map +1 -0
- package/dist/helpers/define-story.cjs +122 -0
- package/dist/helpers/define-story.cjs.map +1 -0
- package/dist/helpers/define-story.d.cts +135 -0
- package/dist/helpers/define-story.d.mts +135 -0
- package/dist/helpers/define-story.mjs +118 -0
- package/dist/helpers/define-story.mjs.map +1 -0
- package/dist/helpers/define-tag.cjs +13 -0
- package/dist/helpers/define-tag.cjs.map +1 -0
- package/dist/helpers/define-tag.d.cts +23 -0
- package/dist/helpers/define-tag.d.mts +23 -0
- package/dist/helpers/define-tag.mjs +12 -0
- package/dist/helpers/define-tag.mjs.map +1 -0
- package/dist/helpers/define-user.cjs +50 -0
- package/dist/helpers/define-user.cjs.map +1 -0
- package/dist/helpers/define-user.d.cts +26 -0
- package/dist/helpers/define-user.d.mts +26 -0
- package/dist/helpers/define-user.mjs +48 -0
- package/dist/helpers/define-user.mjs.map +1 -0
- package/dist/helpers/schema-type.d.cts +40 -0
- package/dist/helpers/schema-type.d.mts +40 -0
- package/dist/index.cjs +55 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.mts +23 -0
- package/dist/index.mjs +17 -0
- package/dist/utils/prettify.d.cts +9 -0
- package/dist/utils/prettify.d.mts +9 -0
- package/package.json +78 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
//#region src/generated/mapi/_internal.gen.d.ts
|
|
2
|
+
type Component = {
|
|
3
|
+
/**
|
|
4
|
+
* Unique identifier for the component
|
|
5
|
+
*/
|
|
6
|
+
readonly id: number;
|
|
7
|
+
/**
|
|
8
|
+
* Technical name of the component.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Human-readable display name
|
|
13
|
+
*/
|
|
14
|
+
display_name?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Component description
|
|
17
|
+
*/
|
|
18
|
+
description?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Creation timestamp (format is ISO 8601 standard in UTC).
|
|
21
|
+
*/
|
|
22
|
+
readonly created_at: string;
|
|
23
|
+
/**
|
|
24
|
+
* Latest update timestamp (format is ISO 8601 standard in UTC).
|
|
25
|
+
*/
|
|
26
|
+
updated_at: string;
|
|
27
|
+
/**
|
|
28
|
+
* Component field schema definition
|
|
29
|
+
*/
|
|
30
|
+
schema: {
|
|
31
|
+
[key: string]: {
|
|
32
|
+
type?: 'bloks' | 'text' | 'textarea' | 'richtext' | 'markdown' | 'number' | 'datetime' | 'boolean' | 'options' | 'option' | 'asset' | 'multiasset' | 'multilink' | 'table' | 'section' | 'commerce' | 'custom' | 'image' | 'file' | 'tab' | 'link' | 'group';
|
|
33
|
+
/**
|
|
34
|
+
* Field ID
|
|
35
|
+
*/
|
|
36
|
+
id?: string;
|
|
37
|
+
[key: string]: unknown | 'bloks' | 'text' | 'textarea' | 'richtext' | 'markdown' | 'number' | 'datetime' | 'boolean' | 'options' | 'option' | 'asset' | 'multiasset' | 'multilink' | 'table' | 'section' | 'commerce' | 'custom' | 'image' | 'file' | 'tab' | 'link' | 'group' | string | undefined;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Component image URL
|
|
42
|
+
*/
|
|
43
|
+
image?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Field used for preview.
|
|
46
|
+
*/
|
|
47
|
+
preview_field?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Whether this component can be used as a root component.
|
|
50
|
+
*/
|
|
51
|
+
is_root: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Preview template HTML.
|
|
54
|
+
*/
|
|
55
|
+
preview_tmpl?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Whether this component can be nested inside other components.
|
|
58
|
+
*/
|
|
59
|
+
is_nestable: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* All presets associated with this component.
|
|
62
|
+
*/
|
|
63
|
+
all_presets?: Array<{
|
|
64
|
+
/**
|
|
65
|
+
* Preset ID
|
|
66
|
+
*/
|
|
67
|
+
id?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Preset name
|
|
70
|
+
*/
|
|
71
|
+
name?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Preset schema
|
|
74
|
+
*/
|
|
75
|
+
preset?: {
|
|
76
|
+
[key: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* ID of the component this preset belongs to
|
|
80
|
+
*/
|
|
81
|
+
component_id?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Image URL for the preset preview
|
|
84
|
+
*/
|
|
85
|
+
image?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Icon name for the preset
|
|
88
|
+
*/
|
|
89
|
+
icon?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Color for the preset display
|
|
92
|
+
*/
|
|
93
|
+
color?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Description of the preset
|
|
96
|
+
*/
|
|
97
|
+
description?: string | null;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Default preset ID.
|
|
101
|
+
*/
|
|
102
|
+
preset_id?: number | null;
|
|
103
|
+
/**
|
|
104
|
+
* Display name if available, otherwise technical name.
|
|
105
|
+
*/
|
|
106
|
+
real_name?: string;
|
|
107
|
+
/**
|
|
108
|
+
* UUID of the component group this component belongs to.
|
|
109
|
+
*/
|
|
110
|
+
component_group_uuid?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* Component color for UI display
|
|
113
|
+
*/
|
|
114
|
+
color?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Component icon name
|
|
117
|
+
*/
|
|
118
|
+
icon?: string | null;
|
|
119
|
+
internal_tags_list?: Array<{
|
|
120
|
+
/**
|
|
121
|
+
* ID
|
|
122
|
+
*/
|
|
123
|
+
id?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Name
|
|
126
|
+
*/
|
|
127
|
+
name?: string;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
* List of internal tag IDs
|
|
131
|
+
*/
|
|
132
|
+
internal_tag_ids?: Array<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Content Type Asset preview.
|
|
135
|
+
*/
|
|
136
|
+
content_type_asset_preview?: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* Component metadata.
|
|
139
|
+
*/
|
|
140
|
+
metadata?: {
|
|
141
|
+
[key: string]: unknown;
|
|
142
|
+
} | null;
|
|
143
|
+
};
|
|
144
|
+
type ComponentCreate = {
|
|
145
|
+
/**
|
|
146
|
+
* Name of the component
|
|
147
|
+
*/
|
|
148
|
+
name: string;
|
|
149
|
+
/**
|
|
150
|
+
* Human-readable display name
|
|
151
|
+
*/
|
|
152
|
+
display_name?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Component description
|
|
155
|
+
*/
|
|
156
|
+
description?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Preview template HTML
|
|
159
|
+
*/
|
|
160
|
+
preview_tmpl?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Component image URL
|
|
163
|
+
*/
|
|
164
|
+
image?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Field used for preview
|
|
167
|
+
*/
|
|
168
|
+
preview_field?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Whether this component can be used as a root component
|
|
171
|
+
*/
|
|
172
|
+
is_root?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Whether this component can be nested inside other components
|
|
175
|
+
*/
|
|
176
|
+
is_nestable?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Default preset ID
|
|
179
|
+
*/
|
|
180
|
+
preset_id?: number;
|
|
181
|
+
/**
|
|
182
|
+
* UUID
|
|
183
|
+
*/
|
|
184
|
+
component_group_uuid?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Component color for UI display
|
|
187
|
+
*/
|
|
188
|
+
color?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Component icon name
|
|
191
|
+
*/
|
|
192
|
+
icon?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Asset preview URL for content type
|
|
195
|
+
*/
|
|
196
|
+
content_type_asset_preview?: string;
|
|
197
|
+
/**
|
|
198
|
+
* List of internal tag IDs
|
|
199
|
+
*/
|
|
200
|
+
internal_tag_ids?: Array<number>;
|
|
201
|
+
/**
|
|
202
|
+
* Component field schema definition
|
|
203
|
+
*/
|
|
204
|
+
schema?: {
|
|
205
|
+
[key: string]: {
|
|
206
|
+
type?: 'bloks' | 'text' | 'textarea' | 'richtext' | 'markdown' | 'number' | 'datetime' | 'boolean' | 'options' | 'option' | 'asset' | 'multiasset' | 'multilink' | 'table' | 'section' | 'commerce' | 'custom' | 'image' | 'file' | 'tab' | 'link' | 'group';
|
|
207
|
+
/**
|
|
208
|
+
* Human-readable field name
|
|
209
|
+
*/
|
|
210
|
+
display_name?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Whether this field is required
|
|
213
|
+
*/
|
|
214
|
+
required?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Whether this field is translatable
|
|
217
|
+
*/
|
|
218
|
+
translatable?: boolean;
|
|
219
|
+
[key: string]: unknown | 'bloks' | 'text' | 'textarea' | 'richtext' | 'markdown' | 'number' | 'datetime' | 'boolean' | 'options' | 'option' | 'asset' | 'multiasset' | 'multilink' | 'table' | 'section' | 'commerce' | 'custom' | 'image' | 'file' | 'tab' | 'link' | 'group' | string | boolean | undefined;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Component metadata
|
|
224
|
+
*/
|
|
225
|
+
metadata?: {
|
|
226
|
+
[key: string]: unknown;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
type ComponentUpdate = {
|
|
230
|
+
/**
|
|
231
|
+
* Name of the component
|
|
232
|
+
*/
|
|
233
|
+
name?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Human-readable display name
|
|
236
|
+
*/
|
|
237
|
+
display_name?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Component description
|
|
240
|
+
*/
|
|
241
|
+
description?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Preview template HTML
|
|
244
|
+
*/
|
|
245
|
+
preview_tmpl?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Component image URL
|
|
248
|
+
*/
|
|
249
|
+
image?: string;
|
|
250
|
+
/**
|
|
251
|
+
* Field used for preview
|
|
252
|
+
*/
|
|
253
|
+
preview_field?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Whether this component can be used as a root component
|
|
256
|
+
*/
|
|
257
|
+
is_root?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Whether this component can be nested inside other components
|
|
260
|
+
*/
|
|
261
|
+
is_nestable?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Default preset ID
|
|
264
|
+
*/
|
|
265
|
+
preset_id?: number;
|
|
266
|
+
/**
|
|
267
|
+
* UUID
|
|
268
|
+
*/
|
|
269
|
+
component_group_uuid?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Component color for UI display
|
|
272
|
+
*/
|
|
273
|
+
color?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Component icon name
|
|
276
|
+
*/
|
|
277
|
+
icon?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Asset preview URL for content type
|
|
280
|
+
*/
|
|
281
|
+
content_type_asset_preview?: string;
|
|
282
|
+
/**
|
|
283
|
+
* List of internal tag IDs
|
|
284
|
+
*/
|
|
285
|
+
internal_tag_ids?: Array<number>;
|
|
286
|
+
/**
|
|
287
|
+
* Component field schema definition
|
|
288
|
+
*/
|
|
289
|
+
schema?: {
|
|
290
|
+
[key: string]: {
|
|
291
|
+
type?: 'bloks' | 'text' | 'textarea' | 'richtext' | 'markdown' | 'number' | 'datetime' | 'boolean' | 'options' | 'option' | 'asset' | 'multiasset' | 'multilink' | 'table' | 'section' | 'commerce' | 'custom' | 'image' | 'file' | 'tab' | 'link' | 'group';
|
|
292
|
+
/**
|
|
293
|
+
* Human-readable field name
|
|
294
|
+
*/
|
|
295
|
+
display_name?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Whether this field is required
|
|
298
|
+
*/
|
|
299
|
+
required?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Whether this field is translatable
|
|
302
|
+
*/
|
|
303
|
+
translatable?: boolean;
|
|
304
|
+
[key: string]: unknown | 'bloks' | 'text' | 'textarea' | 'richtext' | 'markdown' | 'number' | 'datetime' | 'boolean' | 'options' | 'option' | 'asset' | 'multiasset' | 'multilink' | 'table' | 'section' | 'commerce' | 'custom' | 'image' | 'file' | 'tab' | 'link' | 'group' | string | boolean | undefined;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Component metadata
|
|
309
|
+
*/
|
|
310
|
+
metadata?: {
|
|
311
|
+
[key: string]: unknown;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
type MapiStory = {
|
|
315
|
+
name: string;
|
|
316
|
+
/**
|
|
317
|
+
* ID of parent space if this is a child space.
|
|
318
|
+
*/
|
|
319
|
+
parent_id: number | null;
|
|
320
|
+
group_id: string;
|
|
321
|
+
alternates: Array<Alternate>;
|
|
322
|
+
/**
|
|
323
|
+
* Creation timestamp (format is ISO 8601 standard in UTC).
|
|
324
|
+
*/
|
|
325
|
+
readonly created_at: string;
|
|
326
|
+
deleted_at: string | null;
|
|
327
|
+
sort_by_date: string | null;
|
|
328
|
+
tag_list: Array<string>;
|
|
329
|
+
/**
|
|
330
|
+
* Latest update timestamp (format is ISO 8601 standard in UTC).
|
|
331
|
+
*/
|
|
332
|
+
updated_at: string;
|
|
333
|
+
/**
|
|
334
|
+
* Latest publication timestamp (format is ISO 8601 standard in UTC).
|
|
335
|
+
*/
|
|
336
|
+
published_at: string | null;
|
|
337
|
+
readonly id: number;
|
|
338
|
+
/**
|
|
339
|
+
* Unique UUID identifier for the discussion.
|
|
340
|
+
*/
|
|
341
|
+
readonly uuid: string;
|
|
342
|
+
/**
|
|
343
|
+
* true if the instance constitutes a folder.
|
|
344
|
+
*/
|
|
345
|
+
is_folder: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Dynamic component data rendered by Storyblok, structure varies by component
|
|
348
|
+
*/
|
|
349
|
+
content: {
|
|
350
|
+
_uid?: string;
|
|
351
|
+
component?: string;
|
|
352
|
+
[key: string]: unknown | string | undefined;
|
|
353
|
+
};
|
|
354
|
+
published: boolean | null;
|
|
355
|
+
/**
|
|
356
|
+
* URL-friendly identifier for the app category.
|
|
357
|
+
*/
|
|
358
|
+
slug: string;
|
|
359
|
+
path: string | null;
|
|
360
|
+
full_slug: string;
|
|
361
|
+
/**
|
|
362
|
+
* The default root
|
|
363
|
+
*/
|
|
364
|
+
default_root: string | null;
|
|
365
|
+
disble_fe_editor: boolean;
|
|
366
|
+
disable_fe_editor: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Parent story object (for nested stories).
|
|
369
|
+
*/
|
|
370
|
+
parent: {
|
|
371
|
+
id?: number;
|
|
372
|
+
uuid?: string;
|
|
373
|
+
name?: string;
|
|
374
|
+
slug?: string;
|
|
375
|
+
disble_fe_editor?: boolean;
|
|
376
|
+
} | null;
|
|
377
|
+
/**
|
|
378
|
+
* true if the story is defined as the startpage for its parent folder.
|
|
379
|
+
*/
|
|
380
|
+
is_startpage: boolean;
|
|
381
|
+
unpublished_changes: boolean | null;
|
|
382
|
+
/**
|
|
383
|
+
* Custom metadata for the story
|
|
384
|
+
*/
|
|
385
|
+
meta_data: {
|
|
386
|
+
[key: string]: unknown;
|
|
387
|
+
} | null;
|
|
388
|
+
/**
|
|
389
|
+
* Base version ID(common ancestor) for the story, used for three-way merge operations)
|
|
390
|
+
*/
|
|
391
|
+
base_version_id?: number | null;
|
|
392
|
+
/**
|
|
393
|
+
* Main version ID, current version in main
|
|
394
|
+
*/
|
|
395
|
+
main_version_id?: number | null;
|
|
396
|
+
/**
|
|
397
|
+
* Current version ID, current version in release or main
|
|
398
|
+
*/
|
|
399
|
+
current_version_id?: number | null;
|
|
400
|
+
imported_at: string | null;
|
|
401
|
+
/**
|
|
402
|
+
* Preview token for the story.
|
|
403
|
+
*/
|
|
404
|
+
preview_token: {
|
|
405
|
+
token: string;
|
|
406
|
+
timestamp: string;
|
|
407
|
+
};
|
|
408
|
+
pinned: boolean;
|
|
409
|
+
/**
|
|
410
|
+
* List of breadcrumbs for the story.
|
|
411
|
+
*/
|
|
412
|
+
breadcrumbs: Array<Breadcrumb>;
|
|
413
|
+
publish_at: string | null;
|
|
414
|
+
expire_at: string | null;
|
|
415
|
+
first_published_at: string | null;
|
|
416
|
+
last_author: {
|
|
417
|
+
id?: number;
|
|
418
|
+
userid: string;
|
|
419
|
+
friendly_name: string;
|
|
420
|
+
avatar?: string;
|
|
421
|
+
} | null;
|
|
422
|
+
last_author_id: number | null;
|
|
423
|
+
/**
|
|
424
|
+
* List of user IDs this story belongs to (read-only, set automatically via workflow or workflow stage changes)
|
|
425
|
+
*/
|
|
426
|
+
user_ids: Array<number>;
|
|
427
|
+
/**
|
|
428
|
+
* Space role IDs (read-only, set automatically via workflow or workflow stage changes)
|
|
429
|
+
*/
|
|
430
|
+
space_role_ids: Array<number>;
|
|
431
|
+
/**
|
|
432
|
+
* List of translated slugs for the story
|
|
433
|
+
*/
|
|
434
|
+
translated_slugs: Array<StoryTranslatedSlug>;
|
|
435
|
+
/**
|
|
436
|
+
* List of translated versions of this story
|
|
437
|
+
*/
|
|
438
|
+
translated_stories: Array<{
|
|
439
|
+
/**
|
|
440
|
+
* First published time for this translation
|
|
441
|
+
*/
|
|
442
|
+
first_published_at: string;
|
|
443
|
+
/**
|
|
444
|
+
* published time
|
|
445
|
+
*/
|
|
446
|
+
published_at: string;
|
|
447
|
+
/**
|
|
448
|
+
* Language code for this translation
|
|
449
|
+
*/
|
|
450
|
+
lang: string;
|
|
451
|
+
/**
|
|
452
|
+
* Whether this translation has unpublished changes
|
|
453
|
+
*/
|
|
454
|
+
unpublished_changes: boolean;
|
|
455
|
+
}>;
|
|
456
|
+
/**
|
|
457
|
+
* List of localized paths for the story.
|
|
458
|
+
*/
|
|
459
|
+
localized_paths: Array<StoryLocalizedPath>;
|
|
460
|
+
/**
|
|
461
|
+
* Numeric representation of the story's position in the folder.
|
|
462
|
+
*/
|
|
463
|
+
position: number;
|
|
464
|
+
can_not_view: boolean | null;
|
|
465
|
+
is_scheduled: boolean | null;
|
|
466
|
+
scheduled_dates: string | null;
|
|
467
|
+
/**
|
|
468
|
+
* List of ideas associated with this story.
|
|
469
|
+
*/
|
|
470
|
+
ideas: Array<{
|
|
471
|
+
/**
|
|
472
|
+
* Idea ID
|
|
473
|
+
*/
|
|
474
|
+
id: string;
|
|
475
|
+
/**
|
|
476
|
+
* Idea name
|
|
477
|
+
*/
|
|
478
|
+
name: string;
|
|
479
|
+
/**
|
|
480
|
+
* Author ID
|
|
481
|
+
*/
|
|
482
|
+
author_id: number;
|
|
483
|
+
/**
|
|
484
|
+
* Whether idea is private
|
|
485
|
+
*/
|
|
486
|
+
is_private: boolean;
|
|
487
|
+
}>;
|
|
488
|
+
/**
|
|
489
|
+
* Workflow stage information (only included when show_stage is true)
|
|
490
|
+
*/
|
|
491
|
+
stage?: Stage | null;
|
|
492
|
+
/**
|
|
493
|
+
* List of user IDs
|
|
494
|
+
*/
|
|
495
|
+
favourite_for_user_ids: Array<number>;
|
|
496
|
+
/**
|
|
497
|
+
* Variant type (null for regular stories, 'experiment' for A/B test variants).
|
|
498
|
+
*/
|
|
499
|
+
variant_type?: string | null;
|
|
500
|
+
/**
|
|
501
|
+
* IDs of experiments this story participates in (only included on show, not index).
|
|
502
|
+
*/
|
|
503
|
+
experiment_ids?: Array<number>;
|
|
504
|
+
};
|
|
505
|
+
type StoryCreate = {
|
|
506
|
+
name?: string;
|
|
507
|
+
disble_fe_editor?: boolean;
|
|
508
|
+
disable_fe_editor?: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* The default root
|
|
511
|
+
*/
|
|
512
|
+
default_root?: string | null;
|
|
513
|
+
is_folder?: boolean;
|
|
514
|
+
group_id?: string;
|
|
515
|
+
path?: string | null;
|
|
516
|
+
slug?: string;
|
|
517
|
+
is_startpage?: boolean;
|
|
518
|
+
/**
|
|
519
|
+
* ID of the parent folder. Can be null or 0 for root-level stories.
|
|
520
|
+
*/
|
|
521
|
+
parent_id?: number | null;
|
|
522
|
+
sort_by_date?: string | null;
|
|
523
|
+
meta_data?: {
|
|
524
|
+
[key: string]: unknown;
|
|
525
|
+
} | null;
|
|
526
|
+
publish_at?: string | null;
|
|
527
|
+
expire_at?: string | null;
|
|
528
|
+
first_published_at?: string | null;
|
|
529
|
+
pinned?: boolean;
|
|
530
|
+
position?: number;
|
|
531
|
+
tag_list?: Array<string>;
|
|
532
|
+
base_version_id?: number | null;
|
|
533
|
+
/**
|
|
534
|
+
* Array of translated slug attributes for creating or updating translated slugs.
|
|
535
|
+
*/
|
|
536
|
+
translated_slugs_attributes?: Array<{
|
|
537
|
+
/**
|
|
538
|
+
* ID of the translated slug (required for updates, omit for new records)
|
|
539
|
+
*/
|
|
540
|
+
id?: number;
|
|
541
|
+
/**
|
|
542
|
+
* The slug for this translated slug (required)
|
|
543
|
+
*/
|
|
544
|
+
slug?: string;
|
|
545
|
+
/**
|
|
546
|
+
* The name for this translated slug
|
|
547
|
+
*/
|
|
548
|
+
name?: string | null;
|
|
549
|
+
/**
|
|
550
|
+
* The language code for this translation
|
|
551
|
+
*/
|
|
552
|
+
lang?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Set to true to mark this translated slug for deletion when the story is saved
|
|
555
|
+
*/
|
|
556
|
+
_destroy?: boolean | null;
|
|
557
|
+
}> | null;
|
|
558
|
+
/**
|
|
559
|
+
* Dynamic component data rendered by Storyblok, structure varies by component
|
|
560
|
+
*/
|
|
561
|
+
content?: {
|
|
562
|
+
[key: string]: unknown;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
type StoryUpdate = StoryCreate;
|
|
566
|
+
type Alternate = {
|
|
567
|
+
id: number;
|
|
568
|
+
name: string;
|
|
569
|
+
/**
|
|
570
|
+
* URL-friendly identifier for the app category.
|
|
571
|
+
*/
|
|
572
|
+
slug: string;
|
|
573
|
+
published: boolean | null;
|
|
574
|
+
full_slug: string;
|
|
575
|
+
/**
|
|
576
|
+
* true if the instance constitutes a folder.
|
|
577
|
+
*/
|
|
578
|
+
is_folder: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* ID of parent space if this is a child space.
|
|
581
|
+
*/
|
|
582
|
+
parent_id: number;
|
|
583
|
+
};
|
|
584
|
+
type Breadcrumb = {
|
|
585
|
+
/**
|
|
586
|
+
* Breadcrumb ID
|
|
587
|
+
*/
|
|
588
|
+
id: number;
|
|
589
|
+
/**
|
|
590
|
+
* Name of the breadcrumb
|
|
591
|
+
*/
|
|
592
|
+
name: string;
|
|
593
|
+
/**
|
|
594
|
+
* ID of parent space if this is a child space.
|
|
595
|
+
*/
|
|
596
|
+
parent_id: number | null;
|
|
597
|
+
/**
|
|
598
|
+
* Disable frontend editor (legacy typo field). Deprecated: use disable_fe_editor instead of disble_fe_editor.
|
|
599
|
+
*/
|
|
600
|
+
disble_fe_editor: boolean;
|
|
601
|
+
/**
|
|
602
|
+
* Disable frontend editor
|
|
603
|
+
*/
|
|
604
|
+
disable_fe_editor: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Path of the breadcrumb
|
|
607
|
+
*/
|
|
608
|
+
path: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* URL-friendly identifier for the app category.
|
|
611
|
+
*/
|
|
612
|
+
slug: string;
|
|
613
|
+
/**
|
|
614
|
+
* List of translated slugs for the breadcrumb
|
|
615
|
+
*/
|
|
616
|
+
translated_slugs: Array<StoryTranslatedSlug>;
|
|
617
|
+
};
|
|
618
|
+
type StoryTranslatedSlug = {
|
|
619
|
+
/**
|
|
620
|
+
* id
|
|
621
|
+
*/
|
|
622
|
+
id: number;
|
|
623
|
+
/**
|
|
624
|
+
* The name for this translated slug
|
|
625
|
+
*/
|
|
626
|
+
name: string | null;
|
|
627
|
+
/**
|
|
628
|
+
* URL-friendly identifier for the app category.
|
|
629
|
+
*/
|
|
630
|
+
slug: string;
|
|
631
|
+
/**
|
|
632
|
+
* The language code for this translation.
|
|
633
|
+
*/
|
|
634
|
+
lang: string;
|
|
635
|
+
published: boolean | null;
|
|
636
|
+
};
|
|
637
|
+
type StoryLocalizedPath = {
|
|
638
|
+
/**
|
|
639
|
+
* The localized path
|
|
640
|
+
*/
|
|
641
|
+
path: string;
|
|
642
|
+
/**
|
|
643
|
+
* The translated name
|
|
644
|
+
*/
|
|
645
|
+
name: string | null;
|
|
646
|
+
/**
|
|
647
|
+
* The language code for this translation.
|
|
648
|
+
*/
|
|
649
|
+
lang: string;
|
|
650
|
+
/**
|
|
651
|
+
* Published status or date
|
|
652
|
+
*/
|
|
653
|
+
published: boolean | string | null;
|
|
654
|
+
/**
|
|
655
|
+
* The translated slug (only present when folders are used).
|
|
656
|
+
*/
|
|
657
|
+
translated_slug?: string;
|
|
658
|
+
};
|
|
659
|
+
type Stage = {
|
|
660
|
+
/**
|
|
661
|
+
* The workflow ID
|
|
662
|
+
*/
|
|
663
|
+
workflow_id: number | null;
|
|
664
|
+
/**
|
|
665
|
+
* The workflow stage ID
|
|
666
|
+
*/
|
|
667
|
+
workflow_stage_id: number;
|
|
668
|
+
/**
|
|
669
|
+
* The story ID
|
|
670
|
+
*/
|
|
671
|
+
story_id: number;
|
|
672
|
+
/**
|
|
673
|
+
* The due date for this workflow stage
|
|
674
|
+
*/
|
|
675
|
+
due_date: string | null;
|
|
676
|
+
/**
|
|
677
|
+
* Creation timestamp (format is ISO 8601 standard in UTC).
|
|
678
|
+
*/
|
|
679
|
+
created_at: string;
|
|
680
|
+
};
|
|
681
|
+
//#endregion
|
|
682
|
+
export { Component, ComponentCreate, ComponentUpdate, MapiStory, StoryCreate, StoryUpdate };
|
|
683
|
+
//# sourceMappingURL=_internal.gen.d.cts.map
|