/* * 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 hrisPayrollsList$module: | Promise | undefined; const hrisPayrollsList = (( ...args: Parameters< typeof import("../funcs/hrisPayrollsList.js").hrisPayrollsList > ) => new APIPromise( (hrisPayrollsList$module ??= import("../funcs/hrisPayrollsList.js").catch( (error: unknown) => { hrisPayrollsList$module = undefined; throw error; }, )).then((module) => module.hrisPayrollsList(...args).$inspect()), )) as typeof import("../funcs/hrisPayrollsList.js").hrisPayrollsList; let hrisPayrollsGet$module: | Promise | undefined; const hrisPayrollsGet = (( ...args: Parameters< typeof import("../funcs/hrisPayrollsGet.js").hrisPayrollsGet > ) => new APIPromise( (hrisPayrollsGet$module ??= import("../funcs/hrisPayrollsGet.js").catch( (error: unknown) => { hrisPayrollsGet$module = undefined; throw error; }, )).then((module) => module.hrisPayrollsGet(...args).$inspect()), )) as typeof import("../funcs/hrisPayrollsGet.js").hrisPayrollsGet; export class Payrolls extends ClientSDK { /** * List Payroll * * @remarks * List Payroll */ async list( request: operations.HrisPayrollsAllRequest, options?: RequestOptions, ): Promise { return unwrapAsync(hrisPayrollsList( this, request, options, )); } /** * Get Payroll * * @remarks * Get Payroll */ async get( request: operations.HrisPayrollsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(hrisPayrollsGet( this, request, options, )); } }