// @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, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as company$0 from "../company/models.js";

/**
 * @returns {$CancellablePromise<company$0.Company[]>}
 */
export function Companies() {
    return $Call.ByID(3083458084).then(/** @type {($result: any) => any} */(($result) => {
        return $$createType1($result);
    }));
}

/**
 * @param {string} name
 * @param {string} memberNumber
 * @param {string} username
 * @param {string} password
 * @returns {$CancellablePromise<void>}
 */
export function CreateCompany(name, memberNumber, username, password) {
    return $Call.ByID(1901112960, name, memberNumber, username, password);
}

/**
 * @param {number} id
 * @param {string} name
 * @param {string} memberNumber
 * @param {string} username
 * @param {string} password
 * @returns {$CancellablePromise<void>}
 */
export function EditCompany(id, name, memberNumber, username, password) {
    return $Call.ByID(2617513428, id, name, memberNumber, username, password);
}

/**
 * @param {number} companyID
 * @param {number} month
 * @param {number} year
 * @param {boolean} devMode
 * @returns {$CancellablePromise<void>}
 */
export function Rpa(companyID, month, year, devMode) {
    return $Call.ByID(202161926, companyID, month, year, devMode);
}

/**
 * @returns {$CancellablePromise<string>}
 */
export function UploadExcel() {
    return $Call.ByID(3720689099);
}

// Private type creation functions
const $$createType0 = company$0.Company.createFrom;
const $$createType1 = $Create.Array($$createType0);
