From 0d928ae1db15a7ed9720ee2df259635f1f07e09f Mon Sep 17 00:00:00 2001 From: Sandro Pereira <38382721+54nd10@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:21:29 +0000 Subject: [PATCH] [apps/cms] Fix creation error --- ...nt-alternate-position-with-image-item.json | 8 +++ ...nt-alternate-position-with-image-list.json | 16 +++++ apps/cms/types/generated/components.d.ts | 24 +++++++ apps/cms/types/generated/contentTypes.d.ts | 71 +++++++++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 apps/cms/src/components/cards/content-alternate-position-with-image-item.json create mode 100644 apps/cms/src/components/content-section/content-alternate-position-with-image-list.json diff --git a/apps/cms/src/components/cards/content-alternate-position-with-image-item.json b/apps/cms/src/components/cards/content-alternate-position-with-image-item.json new file mode 100644 index 00000000..e0419a30 --- /dev/null +++ b/apps/cms/src/components/cards/content-alternate-position-with-image-item.json @@ -0,0 +1,8 @@ +{ + "collectionName": "components_content_alternate_pos_w_image_items", + "info": { + "displayName": "Content-alternate-position-with-image-item" + }, + "options": {}, + "attributes": {} +} diff --git a/apps/cms/src/components/content-section/content-alternate-position-with-image-list.json b/apps/cms/src/components/content-section/content-alternate-position-with-image-list.json new file mode 100644 index 00000000..7e446372 --- /dev/null +++ b/apps/cms/src/components/content-section/content-alternate-position-with-image-list.json @@ -0,0 +1,16 @@ +{ + "collectionName": "components_content_alternate_pos_w_image_lists", + "info": { + "displayName": "Content-alternate-position-with-image-list" + }, + "options": {}, + "attributes": { + "ContentAlternatePositionWithImageItem": { + "displayName": "Content-alternate-position-with-image-item", + "type": "component", + "repeatable": true, + "component": "cards.content-alternate-position-with-image-item", + "required": true + } + } +} diff --git a/apps/cms/types/generated/components.d.ts b/apps/cms/types/generated/components.d.ts index c5342b33..982a4166 100644 --- a/apps/cms/types/generated/components.d.ts +++ b/apps/cms/types/generated/components.d.ts @@ -54,6 +54,14 @@ export interface CardsCardWithIcon extends Schema.Component { } } +export interface CardsContentAlternatePositionWithImageItem extends Schema.Component { + collectionName: 'components_content_alternate_pos_w_image_items' + info: { + displayName: 'Content-alternate-position-with-image-item' + } + attributes: {} +} + export interface ContactSectionsContactSplitWithPattern extends Schema.Component { collectionName: 'contact_split_with_patterns' info: { @@ -89,6 +97,20 @@ export interface ContentSectionContentAlternatePositionImageRight extends Schema } } +export interface ContentSectionContentAlternatePositionWithImageList extends Schema.Component { + collectionName: 'components_content_alternate_pos_w_image_lists' + info: { + displayName: 'Content-alternate-position-with-image-list' + } + attributes: { + ContentAlternatePositionWithImageItem: Attribute.Component< + 'cards.content-alternate-position-with-image-item', + true + > & + Attribute.Required + } +} + export interface ContentSectionContentMarkdown extends Schema.Component { collectionName: 'components_content_section_content_markdowns' info: { @@ -697,9 +719,11 @@ declare module '@strapi/types' { 'blog-sections.blog-masonry': BlogSectionsBlogMasonry 'blog-sections.blog-three-column': BlogSectionsBlogThreeColumn 'cards.card-with-icon': CardsCardWithIcon + 'cards.content-alternate-position-with-image-item': CardsContentAlternatePositionWithImageItem 'contact-sections.contact-split-with-pattern': ContactSectionsContactSplitWithPattern 'content-section.content-alternate-position-image-left': ContentSectionContentAlternatePositionImageLeft 'content-section.content-alternate-position-image-right': ContentSectionContentAlternatePositionImageRight + 'content-section.content-alternate-position-with-image-list': ContentSectionContentAlternatePositionWithImageList 'content-section.content-markdown': ContentSectionContentMarkdown 'content-section.content-two-column': ContentSectionContentTwoColumn 'content-section.introduction-with-logo': ContentSectionIntroductionWithLogo diff --git a/apps/cms/types/generated/contentTypes.d.ts b/apps/cms/types/generated/contentTypes.d.ts index 2092c751..72d41ddb 100644 --- a/apps/cms/types/generated/contentTypes.d.ts +++ b/apps/cms/types/generated/contentTypes.d.ts @@ -369,6 +369,75 @@ export interface PluginUploadFolder extends Schema.CollectionType { } } +export interface PluginContentReleasesRelease extends Schema.CollectionType { + collectionName: 'strapi_releases' + info: { + singularName: 'release' + pluralName: 'releases' + displayName: 'Release' + } + options: { + draftAndPublish: false + } + pluginOptions: { + 'content-manager': { + visible: false + } + 'content-type-builder': { + visible: false + } + } + attributes: { + name: Attribute.String & Attribute.Required + releasedAt: Attribute.DateTime + actions: Attribute.Relation< + 'plugin::content-releases.release', + 'oneToMany', + 'plugin::content-releases.release-action' + > + createdAt: Attribute.DateTime + updatedAt: Attribute.DateTime + createdBy: Attribute.Relation<'plugin::content-releases.release', 'oneToOne', 'admin::user'> & Attribute.Private + updatedBy: Attribute.Relation<'plugin::content-releases.release', 'oneToOne', 'admin::user'> & Attribute.Private + } +} + +export interface PluginContentReleasesReleaseAction extends Schema.CollectionType { + collectionName: 'strapi_release_actions' + info: { + singularName: 'release-action' + pluralName: 'release-actions' + displayName: 'Release Action' + } + options: { + draftAndPublish: false + } + pluginOptions: { + 'content-manager': { + visible: false + } + 'content-type-builder': { + visible: false + } + } + attributes: { + type: Attribute.Enumeration<['publish', 'unpublish']> & Attribute.Required + entry: Attribute.Relation<'plugin::content-releases.release-action', 'morphToOne'> + contentType: Attribute.String & Attribute.Required + release: Attribute.Relation< + 'plugin::content-releases.release-action', + 'manyToOne', + 'plugin::content-releases.release' + > + createdAt: Attribute.DateTime + updatedAt: Attribute.DateTime + createdBy: Attribute.Relation<'plugin::content-releases.release-action', 'oneToOne', 'admin::user'> & + Attribute.Private + updatedBy: Attribute.Relation<'plugin::content-releases.release-action', 'oneToOne', 'admin::user'> & + Attribute.Private + } +} + export interface PluginTranslateBatchTranslateJob extends Schema.CollectionType { collectionName: 'translate_batch_translate_jobs' info: { @@ -1252,6 +1321,8 @@ declare module '@strapi/types' { 'admin::transfer-token-permission': AdminTransferTokenPermission 'plugin::upload.file': PluginUploadFile 'plugin::upload.folder': PluginUploadFolder + 'plugin::content-releases.release': PluginContentReleasesRelease + 'plugin::content-releases.release-action': PluginContentReleasesReleaseAction 'plugin::translate.batch-translate-job': PluginTranslateBatchTranslateJob 'plugin::i18n.locale': PluginI18NLocale 'plugin::users-permissions.permission': PluginUsersPermissionsPermission