@trophyso/node
Version:
NodeJS SDK for the Trophy API
15 lines (14 loc) • 567 B
TypeScript
import type * as TrophyApi from "../index";
/**
* A metric to create.
*/
export interface CreateMetricRequestItem {
/** The metric name. */
name: string;
/** The metric key. Only alphanumeric characters, hyphens, and underscores are permitted. */
key: string;
/** The metric unit type. Defaults to `number`. */
unitType?: TrophyApi.CreateMetricRequestItemUnitType;
/** For `unitType: currency`, this must be a supported `MetricCurrency` code such as `USD`. For `number`, this is an optional freeform unit label. */
units?: string;
}