From 42939a7f6e11241f9d147d4bb4e5cc80cb831278 Mon Sep 17 00:00:00 2001 From: Bryan de Jong Date: Wed, 31 Jan 2024 16:55:32 +0000 Subject: [PATCH] feat(pdc): add cimpdc product data to model --- .../product/content-types/product/schema.json | 10 ++++ .../productencatalogus/schema.json | 29 ++++++----- .../components/cim-pdc-product-metadata.json | 51 +++++++++++++++++++ 3 files changed, 76 insertions(+), 14 deletions(-) create mode 100644 apps/pdc-dashboard/src/components/components/cim-pdc-product-metadata.json diff --git a/apps/pdc-dashboard/src/api/product/content-types/product/schema.json b/apps/pdc-dashboard/src/api/product/content-types/product/schema.json index 0e9da4e7..92321172 100644 --- a/apps/pdc-dashboard/src/api/product/content-types/product/schema.json +++ b/apps/pdc-dashboard/src/api/product/content-types/product/schema.json @@ -118,6 +118,16 @@ "relation": "oneToOne", "target": "api::productencatalogus.productencatalogus", "inversedBy": "product" + }, + "pdc_metadata": { + "type": "component", + "repeatable": false, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "component": "components.cim-pdc-product-metadata" } } } diff --git a/apps/pdc-dashboard/src/api/productencatalogus/content-types/productencatalogus/schema.json b/apps/pdc-dashboard/src/api/productencatalogus/content-types/productencatalogus/schema.json index ce82da60..cd9e42a2 100644 --- a/apps/pdc-dashboard/src/api/productencatalogus/content-types/productencatalogus/schema.json +++ b/apps/pdc-dashboard/src/api/productencatalogus/content-types/productencatalogus/schema.json @@ -4,46 +4,44 @@ "info": { "singularName": "productencatalogus", "pluralName": "productencataloguses", - "displayName": "Productencatalogus" + "displayName": "Productencatalogus", + "description": "" }, "options": { "draftAndPublish": true }, "pluginOptions": {}, "attributes": { - "OrganisatieIdentificatie": { + "organisatieIdentificatie": { "type": "string" }, - "Domein": { + "domein": { "type": "string" }, - "Naam": { + "naam": { "type": "string", "required": true, "unique": true }, - "Doelgroep": { + "doelgroep": { "type": "string" }, - "ReferentiePDC": { - "type": "string" - }, - "Toelichting": { + "toelichting": { "type": "text" }, - "Versie": { + "versie": { "type": "string" }, - "BegindatumVersie": { + "begindatumVersie": { "type": "date" }, - "BeherendeOrganisatie": { + "beherendeOrganisatie": { "type": "string" }, - "ContactpesoonBeheerNaam": { + "contactpersoonBeheerNaam": { "type": "string" }, - "ContactpersoonBeheerEmail": { + "contactpersoonBeheerEmail": { "type": "string" }, "product": { @@ -51,6 +49,9 @@ "relation": "oneToOne", "target": "api::product.product", "mappedBy": "productencatalogus" + }, + "referentiePDC": { + "type": "boolean" } } } diff --git a/apps/pdc-dashboard/src/components/components/cim-pdc-product-metadata.json b/apps/pdc-dashboard/src/components/components/cim-pdc-product-metadata.json new file mode 100644 index 00000000..b1d3e39c --- /dev/null +++ b/apps/pdc-dashboard/src/components/components/cim-pdc-product-metadata.json @@ -0,0 +1,51 @@ +{ + "collectionName": "components_components_cim_pdc_product_metadata", + "info": { + "displayName": "CimPDC Product metadata", + "description": "" + }, + "options": {}, + "attributes": { + "productCode": { + "type": "string", + "required": true, + "unique": true + }, + "doelgroep": { + "type": "string" + }, + "beoogdResultaat": { + "type": "string" + }, + "bestelwijze": { + "type": "string" + }, + "wettelijkeTermijn": { + "type": "string" + }, + "servicetermijn": { + "type": "string" + }, + "afnemer": { + "type": "string" + }, + "soortBevoegdGezag": { + "type": "string" + }, + "uitvoeringsorganisatie": { + "type": "string" + }, + "grondslag": { + "type": "string" + }, + "soortTaak": { + "type": "string" + }, + "uplProductnaam": { + "type": "string" + }, + "eigenaar": { + "type": "string" + } + } +}