main
trivernis 5 months ago
parent 875963fe41
commit 08537add35
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -10,12 +10,21 @@
"options": { "options": {
"draftAndPublish": true "draftAndPublish": true
}, },
"pluginOptions": {}, "pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": { "attributes": {
"name": { "name": {
"type": "string", "type": "string",
"required": true, "required": true,
"unique": true "unique": false,
"pluginOptions": {
"i18n": {
"localized": true
}
}
}, },
"slug": { "slug": {
"type": "uid", "type": "uid",
@ -30,10 +39,20 @@
"files", "files",
"videos", "videos",
"audios" "audios"
] ],
"pluginOptions": {
"i18n": {
"localized": true
}
}
}, },
"description": { "description": {
"type": "text" "type": "text",
"pluginOptions": {
"i18n": {
"localized": true
}
}
}, },
"posts": { "posts": {
"type": "relation", "type": "relation",

@ -10,7 +10,11 @@
"options": { "options": {
"draftAndPublish": true "draftAndPublish": true
}, },
"pluginOptions": {}, "pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": { "attributes": {
"slug": { "slug": {
"type": "uid", "type": "uid",
@ -19,7 +23,12 @@
}, },
"title": { "title": {
"type": "string", "type": "string",
"required": true "required": true,
"pluginOptions": {
"i18n": {
"localized": true
}
}
}, },
"author": { "author": {
"type": "relation", "type": "relation",
@ -32,7 +41,12 @@
"content.gallery", "content.gallery",
"content.image", "content.image",
"content.text-markdown" "content.text-markdown"
] ],
"pluginOptions": {
"i18n": {
"localized": true
}
}
}, },
"tags": { "tags": {
"type": "relation", "type": "relation",

@ -10,11 +10,20 @@
"options": { "options": {
"draftAndPublish": true "draftAndPublish": true
}, },
"pluginOptions": {}, "pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": { "attributes": {
"name": { "name": {
"type": "string", "type": "string",
"required": true "required": true,
"pluginOptions": {
"i18n": {
"localized": true
}
}
}, },
"slug": { "slug": {
"type": "uid", "type": "uid",

@ -874,11 +874,32 @@ export interface ApiBlogCollectionBlogCollection extends Schema.CollectionType {
options: { options: {
draftAndPublish: true; draftAndPublish: true;
}; };
pluginOptions: {
i18n: {
localized: true;
};
};
attributes: { attributes: {
name: Attribute.String & Attribute.Required & Attribute.Unique; name: Attribute.String &
Attribute.Required &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
slug: Attribute.UID<'api::blog-collection.blog-collection', 'name'>; slug: Attribute.UID<'api::blog-collection.blog-collection', 'name'>;
picture: Attribute.Media<'images' | 'files' | 'videos' | 'audios'>; picture: Attribute.Media<'images' | 'files' | 'videos' | 'audios'> &
description: Attribute.Text; Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
description: Attribute.Text &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
posts: Attribute.Relation< posts: Attribute.Relation<
'api::blog-collection.blog-collection', 'api::blog-collection.blog-collection',
'oneToMany', 'oneToMany',
@ -899,6 +920,12 @@ export interface ApiBlogCollectionBlogCollection extends Schema.CollectionType {
'admin::user' 'admin::user'
> & > &
Attribute.Private; Attribute.Private;
localizations: Attribute.Relation<
'api::blog-collection.blog-collection',
'oneToMany',
'api::blog-collection.blog-collection'
>;
locale: Attribute.String;
}; };
} }
@ -913,10 +940,21 @@ export interface ApiBlogPostBlogPost extends Schema.CollectionType {
options: { options: {
draftAndPublish: true; draftAndPublish: true;
}; };
pluginOptions: {
i18n: {
localized: true;
};
};
attributes: { attributes: {
slug: Attribute.UID<'api::blog-post.blog-post', 'title'> & slug: Attribute.UID<'api::blog-post.blog-post', 'title'> &
Attribute.Required; Attribute.Required;
title: Attribute.String & Attribute.Required; title: Attribute.String &
Attribute.Required &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
author: Attribute.Relation< author: Attribute.Relation<
'api::blog-post.blog-post', 'api::blog-post.blog-post',
'oneToOne', 'oneToOne',
@ -924,7 +962,12 @@ export interface ApiBlogPostBlogPost extends Schema.CollectionType {
>; >;
content: Attribute.DynamicZone< content: Attribute.DynamicZone<
['content.gallery', 'content.image', 'content.text-markdown'] ['content.gallery', 'content.image', 'content.text-markdown']
>; > &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
tags: Attribute.Relation< tags: Attribute.Relation<
'api::blog-post.blog-post', 'api::blog-post.blog-post',
'oneToMany', 'oneToMany',
@ -950,6 +993,12 @@ export interface ApiBlogPostBlogPost extends Schema.CollectionType {
'admin::user' 'admin::user'
> & > &
Attribute.Private; Attribute.Private;
localizations: Attribute.Relation<
'api::blog-post.blog-post',
'oneToMany',
'api::blog-post.blog-post'
>;
locale: Attribute.String;
}; };
} }
@ -964,8 +1013,19 @@ export interface ApiTagTag extends Schema.CollectionType {
options: { options: {
draftAndPublish: true; draftAndPublish: true;
}; };
pluginOptions: {
i18n: {
localized: true;
};
};
attributes: { attributes: {
name: Attribute.String & Attribute.Required; name: Attribute.String &
Attribute.Required &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
slug: Attribute.UID<'api::tag.tag', 'name'>; slug: Attribute.UID<'api::tag.tag', 'name'>;
createdAt: Attribute.DateTime; createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime; updatedAt: Attribute.DateTime;
@ -974,6 +1034,12 @@ export interface ApiTagTag extends Schema.CollectionType {
Attribute.Private; Attribute.Private;
updatedBy: Attribute.Relation<'api::tag.tag', 'oneToOne', 'admin::user'> & updatedBy: Attribute.Relation<'api::tag.tag', 'oneToOne', 'admin::user'> &
Attribute.Private; Attribute.Private;
localizations: Attribute.Relation<
'api::tag.tag',
'oneToMany',
'api::tag.tag'
>;
locale: Attribute.String;
}; };
} }

Loading…
Cancel
Save