Skip to content
Merged
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
110 changes: 2 additions & 108 deletions generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1048,31 +1048,6 @@ export interface MetricError {
*/
message?: string;
}

/**
*
* @export
*/
export const MetricFormat = {
Number: 'number',
Currency: 'currency',
Percent: 'percent',
Unit: 'unit',
String: 'string'
} as const;
export type MetricFormat = typeof MetricFormat[keyof typeof MetricFormat];


/**
*
* @export
*/
export const MetricUnitSpacing = {
None: 'none',
Space: 'space'
} as const;
export type MetricUnitSpacing = typeof MetricUnitSpacing[keyof typeof MetricUnitSpacing];

/**
* Latest metric value to display in widgets.
* @export
Expand Down Expand Up @@ -1108,10 +1083,10 @@ export interface MetricValueUpdateResponse {
[key: string]: any | any;
/**
*
* @type {WidgetMetric}
* @type {boolean}
* @memberof MetricValueUpdateResponse
*/
metric: WidgetMetric;
success: boolean;
}
/**
*
Expand Down Expand Up @@ -1503,84 +1478,3 @@ export const StreamContentStateStepColorsEnum = {
} as const;
export type StreamContentStateStepColorsEnum = typeof StreamContentStateStepColorsEnum[keyof typeof StreamContentStateStepColorsEnum];

/**
* A metric configured for ActivitySmith widgets.
* @export
* @interface WidgetMetric
*/
export interface WidgetMetric {
[key: string]: any | any;
/**
*
* @type {string}
* @memberof WidgetMetric
*/
public_id: string;
/**
*
* @type {string}
* @memberof WidgetMetric
*/
key: string;
/**
*
* @type {string}
* @memberof WidgetMetric
*/
label: string;
/**
* Present when format is currency.
* @type {string}
* @memberof WidgetMetric
*/
currency_code: string | null;
/**
* Present when format is unit.
* @type {string}
* @memberof WidgetMetric
*/
unit: string | null;
/**
*
* @type {MetricUnitSpacing}
* @memberof WidgetMetric
*/
unit_spacing: MetricUnitSpacing;
/**
*
* @type {MetricFormat}
* @memberof WidgetMetric
*/
format: MetricFormat;
/**
*
* @type {WidgetMetricLatestValue}
* @memberof WidgetMetric
*/
latest_value: WidgetMetricLatestValue | null;
/**
*
* @type {string}
* @memberof WidgetMetric
*/
latest_value_at: string | null;
/**
*
* @type {string}
* @memberof WidgetMetric
*/
created_at: string;
/**
*
* @type {string}
* @memberof WidgetMetric
*/
updated_at: string;
}
/**
* Latest metric value. Numeric formats return a number. String metrics return text.
* @export
* @interface WidgetMetricLatestValue
*/
export interface WidgetMetricLatestValue {
}