calculateImpact
Calculate the environmental impact for a product with specific parameters.| Field | Type | Required | Description |
|---|---|---|---|
productId | ID! | Yes | Product identifier |
quantity | Int! | Yes | Number of units |
transportMethod | TransportMethod | No | Transport type |
distance | Float | No | Transport distance |
distanceUnit | DistanceUnit | No | KM or MILES |
originCountry | String | No | ISO country code |
destinationCountry | String | No | ISO country code |
locale | String | No | Locale for equivalencies (default: “en”) |
calculateMki
Calculate the MKI (Milieukostenindicator) score with lifecycle phases.| Field | Type | Required | Description |
|---|---|---|---|
productId | ID! | Yes | Product identifier |
quantity | Float | No | Quantity (default: 1) |
functionalUnit | String | No | Functional unit (e.g., “m2”, “kg”, “piece”) |
lifespan | Int | No | Product lifespan in years |
maintenanceScenario | MaintenanceScenario | No | NONE, STANDARD, INTENSIVE |