UNPKG

@trophyso/node

Version:
15 lines (14 loc) 594 B
import type * as TrophyApi from "../index"; /** * A metric update object. `id` is required; `name`, `unitType`, and `units` are optional. `key` cannot be changed through this endpoint. */ export interface UpdateMetricRequestItem { /** The UUID of the metric to update. */ id: string; /** The updated metric name. */ name?: string; /** The updated metric unit type. */ unitType?: TrophyApi.UpdateMetricRequestItemUnitType; /** The updated units value. For `unitType: currency`, this must be a supported `MetricCurrency` code such as `USD`. */ units?: string; }