41 lines
1.4 KiB
JavaScript
41 lines
1.4 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";
|
|
|
|
/**
|
|
* @param {models$0.AuditLogFilter} filter
|
|
* @returns {Promise<models$0.AuditLog[]> & { cancel(): void }}
|
|
*/
|
|
export function List(filter) {
|
|
let $resultPromise = /** @type {any} */($Call.ByID(1985320716, filter));
|
|
let $typingPromise = /** @type {any} */($resultPromise.then(($result) => {
|
|
return $$createType1($result);
|
|
}));
|
|
$typingPromise.cancel = $resultPromise.cancel.bind($resultPromise);
|
|
return $typingPromise;
|
|
}
|
|
|
|
/**
|
|
* @param {string} action
|
|
* @param {string} targetType
|
|
* @param {string} targetID
|
|
* @param {string} detail
|
|
* @returns {Promise<void> & { cancel(): void }}
|
|
*/
|
|
export function Record(action, targetType, targetID, detail) {
|
|
let $resultPromise = /** @type {any} */($Call.ByID(1661109649, action, targetType, targetID, detail));
|
|
return $resultPromise;
|
|
}
|
|
|
|
// Private type creation functions
|
|
const $$createType0 = models$0.AuditLog.createFrom;
|
|
const $$createType1 = $Create.Array($$createType0);
|