Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,47 @@ export interface ActivityMetric {
label: string;
/**
*
* @type {number}
* @type {ActivityMetricValue}
* @memberof ActivityMetric
*/
value: number;
value: ActivityMetricValue;
/**
*
* @type {string}
* @memberof ActivityMetric
*/
unit?: string;
/**
* Optional per-metric accent color for metrics and stats activities.
* @type {string}
* @memberof ActivityMetric
*/
color?: ActivityMetricColorEnum;
}


/**
* @export
*/
export const ActivityMetricColorEnum = {
Lime: 'lime',
Green: 'green',
Cyan: 'cyan',
Blue: 'blue',
Purple: 'purple',
Magenta: 'magenta',
Red: 'red',
Orange: 'orange',
Yellow: 'yellow'
} as const;
export type ActivityMetricColorEnum = typeof ActivityMetricColorEnum[keyof typeof ActivityMetricColorEnum];

/**
* @type ActivityMetricValue
*
* @export
*/
export type ActivityMetricValue = number | string;
/**
*
* @export
Expand Down