// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT

import {Call} from '@wailsio/runtime';

/**
 * @function Companies
 * @returns {Promise<Company[], void>}
 **/
export async function Companies() {
	return Call.ByName("srv.Srv.Companies", ...Array.prototype.slice.call(arguments, 0));
}

/**
 * @function CreateCompany
 * @param name {string}
 * @param memberNumber {string}
 * @param username {string}
 * @param password {string}
 * @returns {Promise<void>}
 **/
export async function CreateCompany(name, memberNumber, username, password) {
	return Call.ByName("srv.Srv.CreateCompany", ...Array.prototype.slice.call(arguments, 0));
}

/**
 * @function Rpa
 * @param companyName {string}
 * @param month {number}
 * @param year {number}
 * @returns {Promise<void>}
 **/
export async function Rpa(companyName, month, year) {
	return Call.ByName("srv.Srv.Rpa", ...Array.prototype.slice.call(arguments, 0));
}

/**
 * @function UploadExcel
 * @returns {Promise<string>}
 **/
export async function UploadExcel() {
	return Call.ByName("srv.Srv.UploadExcel", ...Array.prototype.slice.call(arguments, 0));
}
