/* * 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"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; let atsApplicantsList$module: | Promise | undefined; const atsApplicantsList = (( ...args: Parameters< typeof import("../funcs/atsApplicantsList.js").atsApplicantsList > ) => new APIPromise( (atsApplicantsList$module ??= import("../funcs/atsApplicantsList.js") .catch((error: unknown) => { atsApplicantsList$module = undefined; throw error; })).then((module) => module.atsApplicantsList(...args).$inspect()), )) as typeof import("../funcs/atsApplicantsList.js").atsApplicantsList; let atsApplicantsCreate$module: | Promise | undefined; const atsApplicantsCreate = (( ...args: Parameters< typeof import("../funcs/atsApplicantsCreate.js").atsApplicantsCreate > ) => new APIPromise( (atsApplicantsCreate$module ??= import("../funcs/atsApplicantsCreate.js") .catch((error: unknown) => { atsApplicantsCreate$module = undefined; throw error; })).then((module) => module.atsApplicantsCreate(...args).$inspect()), )) as typeof import("../funcs/atsApplicantsCreate.js").atsApplicantsCreate; let atsApplicantsGet$module: | Promise | undefined; const atsApplicantsGet = (( ...args: Parameters< typeof import("../funcs/atsApplicantsGet.js").atsApplicantsGet > ) => new APIPromise( (atsApplicantsGet$module ??= import("../funcs/atsApplicantsGet.js").catch( (error: unknown) => { atsApplicantsGet$module = undefined; throw error; }, )).then((module) => module.atsApplicantsGet(...args).$inspect()), )) as typeof import("../funcs/atsApplicantsGet.js").atsApplicantsGet; let atsApplicantsUpdate$module: | Promise | undefined; const atsApplicantsUpdate = (( ...args: Parameters< typeof import("../funcs/atsApplicantsUpdate.js").atsApplicantsUpdate > ) => new APIPromise( (atsApplicantsUpdate$module ??= import("../funcs/atsApplicantsUpdate.js") .catch((error: unknown) => { atsApplicantsUpdate$module = undefined; throw error; })).then((module) => module.atsApplicantsUpdate(...args).$inspect()), )) as typeof import("../funcs/atsApplicantsUpdate.js").atsApplicantsUpdate; let atsApplicantsDelete$module: | Promise | undefined; const atsApplicantsDelete = (( ...args: Parameters< typeof import("../funcs/atsApplicantsDelete.js").atsApplicantsDelete > ) => new APIPromise( (atsApplicantsDelete$module ??= import("../funcs/atsApplicantsDelete.js") .catch((error: unknown) => { atsApplicantsDelete$module = undefined; throw error; })).then((module) => module.atsApplicantsDelete(...args).$inspect()), )) as typeof import("../funcs/atsApplicantsDelete.js").atsApplicantsDelete; export class Applicants extends ClientSDK { /** * List Applicants * * @remarks * List Applicants */ async list( request: operations.AtsApplicantsAllRequest, options?: RequestOptions, ): Promise< PageIterator > { return unwrapResultIterator(atsApplicantsList( this, request, options, )); } /** * Create Applicant * * @remarks * Create Applicant */ async create( request: operations.AtsApplicantsAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsApplicantsCreate( this, request, options, )); } /** * Get Applicant * * @remarks * Get Applicant */ async get( request: operations.AtsApplicantsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsApplicantsGet( this, request, options, )); } /** * Update Applicant * * @remarks * Update Applicant */ async update( request: operations.AtsApplicantsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsApplicantsUpdate( this, request, options, )); } /** * Delete Applicant * * @remarks * Delete Applicant */ async delete( request: operations.AtsApplicantsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsApplicantsDelete( this, request, options, )); } }