Skip to content
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions generated/apis/MetricsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface UpdateMetricValueRequest {
export class MetricsApi extends runtime.BaseAPI {

/**
* Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
* Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
* Update a widget metric value
*/
async updateMetricValueRaw(requestParameters: UpdateMetricValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MetricValueUpdateResponse>> {
Expand Down Expand Up @@ -76,7 +76,7 @@ export class MetricsApi extends runtime.BaseAPI {
}

/**
* Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
* Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
* Update a widget metric value
*/
async updateMetricValue(requestParameters: UpdateMetricValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MetricValueUpdateResponse> {
Expand Down
23 changes: 8 additions & 15 deletions generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1108,10 +1108,10 @@ export interface MetricValueUpdateResponse {
[key: string]: any | any;
/**
*
* @type {WidgetMetric}
* @type {boolean}
* @memberof MetricValueUpdateResponse
*/
metric: WidgetMetric;
success: boolean;
}
/**
*
Expand Down Expand Up @@ -1533,13 +1533,13 @@ export interface WidgetMetric {
* @type {string}
* @memberof WidgetMetric
*/
currency_code: string | null;
currency_code: string;
/**
* Present when format is unit.
* @type {string}
* @memberof WidgetMetric
*/
unit: string | null;
unit: string;
/**
*
* @type {MetricUnitSpacing}
Expand All @@ -1553,17 +1553,17 @@ export interface WidgetMetric {
*/
format: MetricFormat;
/**
*
* @type {WidgetMetricLatestValue}
* Latest metric value. Numeric formats return a number. String metrics return text.
* @type {number}
* @memberof WidgetMetric
*/
latest_value: WidgetMetricLatestValue | null;
latest_value: number;
/**
*
* @type {string}
* @memberof WidgetMetric
*/
latest_value_at: string | null;
latest_value_at: string;
/**
*
* @type {string}
Expand All @@ -1577,10 +1577,3 @@ export interface WidgetMetric {
*/
updated_at: string;
}
/**
* Latest metric value. Numeric formats return a number. String metrics return text.
* @export
* @interface WidgetMetricLatestValue
*/
export interface WidgetMetricLatestValue {
}