feat: 添加Content类型
This commit is contained in:
184
types/generated/contentTypes.d.ts
vendored
184
types/generated/contentTypes.d.ts
vendored
@ -448,6 +448,90 @@ export interface ApiContactInfoContactInfo extends Struct.SingleTypeSchema {
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiHomepageHomepage extends Struct.SingleTypeSchema {
|
||||
collectionName: 'homepages';
|
||||
info: {
|
||||
displayName: 'Homepage';
|
||||
pluralName: 'homepages';
|
||||
singularName: 'homepage';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
pluginOptions: {
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
};
|
||||
attributes: {
|
||||
carousel: Schema.Attribute.Media<'images', true> &
|
||||
Schema.Attribute.SetPluginOptions<{
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
}>;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
locale: Schema.Attribute.String;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::homepage.homepage'
|
||||
>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
recommend_productions: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::production.production'
|
||||
>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiProductionDocumentProductionDocument
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'production_documents';
|
||||
info: {
|
||||
displayName: 'Production Document';
|
||||
pluralName: 'production-documents';
|
||||
singularName: 'production-document';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
pluginOptions: {
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
};
|
||||
attributes: {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
document: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'> &
|
||||
Schema.Attribute.Required &
|
||||
Schema.Attribute.SetPluginOptions<{
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
}>;
|
||||
locale: Schema.Attribute.String;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::production-document.production-document'
|
||||
>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
related_productions: Schema.Attribute.Relation<
|
||||
'manyToMany',
|
||||
'api::production.production'
|
||||
>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiProductionTypeProductionType
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'production_types';
|
||||
@ -532,6 +616,10 @@ export interface ApiProductionProduction extends Struct.CollectionTypeSchema {
|
||||
localized: true;
|
||||
};
|
||||
}>;
|
||||
production_documents: Schema.Attribute.Relation<
|
||||
'manyToMany',
|
||||
'api::production-document.production-document'
|
||||
>;
|
||||
production_images: Schema.Attribute.Media<'images', true> &
|
||||
Schema.Attribute.SetPluginOptions<{
|
||||
i18n: {
|
||||
@ -549,6 +637,10 @@ export interface ApiProductionProduction extends Struct.CollectionTypeSchema {
|
||||
'api::production-type.production-type'
|
||||
>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
questions: Schema.Attribute.Relation<
|
||||
'manyToMany',
|
||||
'api::question.question'
|
||||
>;
|
||||
show_in_production_list: Schema.Attribute.Boolean &
|
||||
Schema.Attribute.SetPluginOptions<{
|
||||
i18n: {
|
||||
@ -575,6 +667,54 @@ export interface ApiProductionProduction extends Struct.CollectionTypeSchema {
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiQuestionQuestion extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'questions';
|
||||
info: {
|
||||
displayName: 'Question';
|
||||
pluralName: 'questions';
|
||||
singularName: 'question';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
pluginOptions: {
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
};
|
||||
attributes: {
|
||||
content: Schema.Attribute.RichText &
|
||||
Schema.Attribute.SetPluginOptions<{
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
}>;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
locale: Schema.Attribute.String;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::question.question'
|
||||
>;
|
||||
productions: Schema.Attribute.Relation<
|
||||
'manyToMany',
|
||||
'api::production.production'
|
||||
>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
title: Schema.Attribute.String &
|
||||
Schema.Attribute.Required &
|
||||
Schema.Attribute.SetPluginOptions<{
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
}>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiSolutionTypeSolutionType
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'solution_types';
|
||||
@ -674,6 +814,46 @@ export interface ApiSolutionSolution extends Struct.CollectionTypeSchema {
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiTotalDocumentTotalDocument extends Struct.SingleTypeSchema {
|
||||
collectionName: 'total_documents';
|
||||
info: {
|
||||
displayName: 'TotalDocument';
|
||||
pluralName: 'total-documents';
|
||||
singularName: 'total-document';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
pluginOptions: {
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
};
|
||||
attributes: {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
documents: Schema.Attribute.Media<
|
||||
'images' | 'files' | 'videos' | 'audios',
|
||||
true
|
||||
> &
|
||||
Schema.Attribute.SetPluginOptions<{
|
||||
i18n: {
|
||||
localized: true;
|
||||
};
|
||||
}>;
|
||||
locale: Schema.Attribute.String;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::total-document.total-document'
|
||||
>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PluginContentReleasesRelease
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'strapi_releases';
|
||||
@ -1185,10 +1365,14 @@ declare module '@strapi/strapi' {
|
||||
'admin::user': AdminUser;
|
||||
'api::company-profile.company-profile': ApiCompanyProfileCompanyProfile;
|
||||
'api::contact-info.contact-info': ApiContactInfoContactInfo;
|
||||
'api::homepage.homepage': ApiHomepageHomepage;
|
||||
'api::production-document.production-document': ApiProductionDocumentProductionDocument;
|
||||
'api::production-type.production-type': ApiProductionTypeProductionType;
|
||||
'api::production.production': ApiProductionProduction;
|
||||
'api::question.question': ApiQuestionQuestion;
|
||||
'api::solution-type.solution-type': ApiSolutionTypeSolutionType;
|
||||
'api::solution.solution': ApiSolutionSolution;
|
||||
'api::total-document.total-document': ApiTotalDocumentTotalDocument;
|
||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||
'plugin::i18n.locale': PluginI18NLocale;
|
||||
|
||||
Reference in New Issue
Block a user