/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { unwrapAsync } from "../types/fp.js"; let hrisEmployeePayrollsList$module: | Promise | undefined; const hrisEmployeePayrollsList = (( ...args: Parameters< typeof import("../funcs/hrisEmployeePayrollsList.js").hrisEmployeePayrollsList > ) => new APIPromise( (hrisEmployeePayrollsList$module ??= import( "../funcs/hrisEmployeePayrollsList.js" ).catch((error: unknown) => { hrisEmployeePayrollsList$module = undefined; throw error; })).then((module) => module.hrisEmployeePayrollsList(...args).$inspect()), )) as typeof import("../funcs/hrisEmployeePayrollsList.js").hrisEmployeePayrollsList; let hrisEmployeePayrollsGet$module: | Promise | undefined; const hrisEmployeePayrollsGet = (( ...args: Parameters< typeof import("../funcs/hrisEmployeePayrollsGet.js").hrisEmployeePayrollsGet > ) => new APIPromise( (hrisEmployeePayrollsGet$module ??= import( "../funcs/hrisEmployeePayrollsGet.js" ).catch((error: unknown) => { hrisEmployeePayrollsGet$module = undefined; throw error; })).then((module) => module.hrisEmployeePayrollsGet(...args).$inspect()), )) as typeof import("../funcs/hrisEmployeePayrollsGet.js").hrisEmployeePayrollsGet; export class EmployeePayrolls extends ClientSDK { /** * List Employee Payrolls * * @remarks * List payrolls for employee */ async list( request: operations.HrisEmployeePayrollsAllRequest, options?: RequestOptions, ): Promise { return unwrapAsync(hrisEmployeePayrollsList( this, request, options, )); } /** * Get Employee Payroll * * @remarks * Get payroll for employee */ async get( request: operations.HrisEmployeePayrollsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(hrisEmployeePayrollsGet( this, request, options, )); } }