Skip to content

Commit

Permalink
[apps/cms] Fix creation error
Browse files Browse the repository at this point in the history
  • Loading branch information
54nd10 authored and nicolasvarone committed Jan 8, 2024
1 parent 4ae0746 commit 0d928ae
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"collectionName": "components_content_alternate_pos_w_image_items",
"info": {
"displayName": "Content-alternate-position-with-image-item"
},
"options": {},
"attributes": {}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
24 changes: 24 additions & 0 deletions apps/cms/types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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
Expand Down
71 changes: 71 additions & 0 deletions apps/cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0d928ae

Please sign in to comment.