42 lines
1.5 KiB
JavaScript
42 lines
1.5 KiB
JavaScript
// @ts-check
|
|
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import * as models$0 from "../models/models.js";
|
|
|
|
/**
|
|
* @returns {Promise<models$0.DashboardMetrics> & { cancel(): void }}
|
|
*/
|
|
export function GetDashboardMetrics() {
|
|
let $resultPromise = /** @type {any} */($Call.ByID(2761444903));
|
|
let $typingPromise = /** @type {any} */($resultPromise.then(($result) => {
|
|
return $$createType0($result);
|
|
}));
|
|
$typingPromise.cancel = $resultPromise.cancel.bind($resultPromise);
|
|
return $typingPromise;
|
|
}
|
|
|
|
/**
|
|
* @param {number} days
|
|
* @returns {Promise<models$0.DailyMetric[]> & { cancel(): void }}
|
|
*/
|
|
export function GetProcessingTrend(days) {
|
|
let $resultPromise = /** @type {any} */($Call.ByID(2069059156, days));
|
|
let $typingPromise = /** @type {any} */($resultPromise.then(($result) => {
|
|
return $$createType2($result);
|
|
}));
|
|
$typingPromise.cancel = $resultPromise.cancel.bind($resultPromise);
|
|
return $typingPromise;
|
|
}
|
|
|
|
// Private type creation functions
|
|
const $$createType0 = models$0.DashboardMetrics.createFrom;
|
|
const $$createType1 = models$0.DailyMetric.createFrom;
|
|
const $$createType2 = $Create.Array($$createType1);
|