diff --git a/scripts/generate-types.js b/scripts/generate-types.js index 5e59109..aadccc5 100644 --- a/scripts/generate-types.js +++ b/scripts/generate-types.js @@ -31,6 +31,7 @@ const PRIMITIVE_TYPE_MAPPINGS = { 'schema:PaymentMethod': 'string', 'schema:paymentStatusType': 'string', 'schema:ItemListOrderType': 'string', + 'schema:OfferItemCondition': 'string', 'schema:BusinessFunction': 'string', 'schema:DeliveryMethod': 'string', 'oo:definitions/string': 'string', diff --git a/src/Product.src.json b/src/Product.src.json index 9ad6e93..e110746 100644 --- a/src/Product.src.json +++ b/src/Product.src.json @@ -24,6 +24,10 @@ "s4i": "http://schema4i.org/", "schema": "http://schema.org/", "Product": "schema:Product", + "ItemCondition": { + "@id": "schema:itemCondition", + "@type": "schema:OfferItemCondition" + }, "Manufacturer": { "@id": "schema:manufacturer", "@type": "s4i:Organization" @@ -55,6 +59,7 @@ "@type": "Product", "Manufacturer": {}, "Model": "Model S", + "ItemCondition": "NewCondition", "Owner": { "@type": "Person", "Name": "Mustermann",