feat: menua eguneratzen du (#10)

* feat: menua eguneratzen du

* ignore: komentarioa
This commit is contained in:
Aitor Urrutia
2023-12-19 19:15:31 +01:00
committed by GitHub
parent 8e76a416d9
commit cbdfd68d67
10 changed files with 159 additions and 361 deletions

View File

@@ -20,46 +20,12 @@
"type": "text",
"required": true
},
"edariBeroak": {
"displayName": "edaria",
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria"
},
"infusioEkologikoak": {
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria"
},
"edariHotzak": {
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria"
},
"pikatzekoak": {
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria"
},
"gozoak": {
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria"
},
"anizkoJogurta": {
"type": "component",
"repeatable": false,
"component": "kafetegia.edaria"
},
"tostadak": {
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria"
},
"konboak": {
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria"
"menua": {
"type": "dynamiczone",
"components": [
"kafetegia.produktu-taldea",
"kafetegia.izenburua"
]
}
}
}

View File

@@ -0,0 +1,15 @@
{
"collectionName": "components_kafetegia_izenburuas",
"info": {
"displayName": "Izenburua",
"icon": "strikeThrough",
"description": ""
},
"options": {},
"attributes": {
"izenburuBalioa": {
"type": "string",
"required": true
}
}
}

View File

@@ -0,0 +1,19 @@
{
"collectionName": "components_kafetegia_produktu_taldeas",
"info": {
"displayName": "Produktu taldea"
},
"options": {},
"attributes": {
"izenburua": {
"type": "string"
},
"produktuak": {
"displayName": "produktuak",
"type": "component",
"repeatable": true,
"component": "kafetegia.edaria",
"required": true
}
}
}

View File

@@ -67,6 +67,30 @@ export interface KafetegiaEdaria extends Schema.Component {
};
}
export interface KafetegiaIzenburua extends Schema.Component {
collectionName: 'components_kafetegia_izenburuas';
info: {
displayName: 'Izenburua';
icon: 'strikeThrough';
description: '';
};
attributes: {
izenburuBalioa: Attribute.String & Attribute.Required;
};
}
export interface KafetegiaProduktuTaldea extends Schema.Component {
collectionName: 'components_kafetegia_produktu_taldeas';
info: {
displayName: 'Produktu taldea';
};
attributes: {
izenburua: Attribute.String;
produktuak: Attribute.Component<'kafetegia.edaria', true> &
Attribute.Required;
};
}
export interface OrokorraDatuOrokorrak extends Schema.Component {
collectionName: 'components_orokorra_datu_orokorraks';
info: {
@@ -97,6 +121,8 @@ declare module '@strapi/types' {
export interface Components {
'kafetegia.alergenoa': KafetegiaAlergenoa;
'kafetegia.edaria': KafetegiaEdaria;
'kafetegia.izenburua': KafetegiaIzenburua;
'kafetegia.produktu-taldea': KafetegiaProduktuTaldea;
'orokorra.datu-orokorrak': OrokorraDatuOrokorrak;
'orokorra.helbidea': OrokorraHelbidea;
}

View File

@@ -724,14 +724,9 @@ export interface ApiKafetegiaKafetegia extends Schema.SingleType {
attributes: {
izenburua: Attribute.String & Attribute.Required;
deskribapena: Attribute.Text & Attribute.Required;
edariBeroak: Attribute.Component<'kafetegia.edaria', true>;
infusioEkologikoak: Attribute.Component<'kafetegia.edaria', true>;
edariHotzak: Attribute.Component<'kafetegia.edaria', true>;
pikatzekoak: Attribute.Component<'kafetegia.edaria', true>;
gozoak: Attribute.Component<'kafetegia.edaria', true>;
anizkoJogurta: Attribute.Component<'kafetegia.edaria'>;
tostadak: Attribute.Component<'kafetegia.edaria', true>;
konboak: Attribute.Component<'kafetegia.edaria', true>;
menua: Attribute.DynamicZone<
['kafetegia.produktu-taldea', 'kafetegia.izenburua']
>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;