update strapi definitions
This commit is contained in:
parent
54b8049488
commit
4c49c570b6
8 changed files with 114 additions and 1 deletions
12
strapi/types/generated/components.d.ts
vendored
12
strapi/types/generated/components.d.ts
vendored
|
|
@ -50,6 +50,17 @@ export interface SharedSeo extends Struct.ComponentSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface SharedTag extends Struct.ComponentSchema {
|
||||
collectionName: 'components_shared_tags';
|
||||
info: {
|
||||
displayName: 'Tag';
|
||||
icon: 'priceTag';
|
||||
};
|
||||
attributes: {
|
||||
Topic: Schema.Attribute.Enumeration<['development', 'work', 'life']>;
|
||||
};
|
||||
}
|
||||
|
||||
declare module '@strapi/strapi' {
|
||||
export module Public {
|
||||
export interface ComponentSchemas {
|
||||
|
|
@ -57,6 +68,7 @@ declare module '@strapi/strapi' {
|
|||
'shared.quote': SharedQuote;
|
||||
'shared.rich-text': SharedRichText;
|
||||
'shared.seo': SharedSeo;
|
||||
'shared.tag': SharedTag;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
28
strapi/types/generated/contentTypes.d.ts
vendored
28
strapi/types/generated/contentTypes.d.ts
vendored
|
|
@ -336,6 +336,33 @@ export interface AdminUser extends Struct.CollectionTypeSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ApiBlogBlog extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'blogs';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'Blog';
|
||||
pluralName: 'blogs';
|
||||
singularName: 'blog';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
Body: Schema.Attribute.RichText & Schema.Attribute.Required;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
Header: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::blog.blog'> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
Title: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique;
|
||||
Topics: Schema.Attribute.Component<'shared.tag', true>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PluginContentReleasesRelease extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'strapi_releases';
|
||||
info: {
|
||||
|
|
@ -763,6 +790,7 @@ declare module '@strapi/strapi' {
|
|||
'admin::transfer-token': AdminTransferToken;
|
||||
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
||||
'admin::user': AdminUser;
|
||||
'api::blog.blog': ApiBlogBlog;
|
||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||
'plugin::i18n.locale': PluginI18NLocale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue