/* * 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 atsJobsList$module: | Promise | undefined; const atsJobsList = (( ...args: Parameters ) => new APIPromise( (atsJobsList$module ??= import("../funcs/atsJobsList.js").catch( (error: unknown) => { atsJobsList$module = undefined; throw error; }, )).then((module) => module.atsJobsList(...args).$inspect()), )) as typeof import("../funcs/atsJobsList.js").atsJobsList; let atsJobsCreate$module: | Promise | undefined; const atsJobsCreate = (( ...args: Parameters< typeof import("../funcs/atsJobsCreate.js").atsJobsCreate > ) => new APIPromise( (atsJobsCreate$module ??= import("../funcs/atsJobsCreate.js").catch( (error: unknown) => { atsJobsCreate$module = undefined; throw error; }, )).then((module) => module.atsJobsCreate(...args).$inspect()), )) as typeof import("../funcs/atsJobsCreate.js").atsJobsCreate; let atsJobsGet$module: | Promise | undefined; const atsJobsGet = ((...args: Parameters) => new APIPromise( (atsJobsGet$module ??= import("../funcs/atsJobsGet.js").catch( (error: unknown) => { atsJobsGet$module = undefined; throw error; }, )).then((module) => module.atsJobsGet(...args).$inspect()), )) as typeof import("../funcs/atsJobsGet.js").atsJobsGet; let atsJobsUpdate$module: | Promise | undefined; const atsJobsUpdate = (( ...args: Parameters< typeof import("../funcs/atsJobsUpdate.js").atsJobsUpdate > ) => new APIPromise( (atsJobsUpdate$module ??= import("../funcs/atsJobsUpdate.js").catch( (error: unknown) => { atsJobsUpdate$module = undefined; throw error; }, )).then((module) => module.atsJobsUpdate(...args).$inspect()), )) as typeof import("../funcs/atsJobsUpdate.js").atsJobsUpdate; let atsJobsDelete$module: | Promise | undefined; const atsJobsDelete = (( ...args: Parameters< typeof import("../funcs/atsJobsDelete.js").atsJobsDelete > ) => new APIPromise( (atsJobsDelete$module ??= import("../funcs/atsJobsDelete.js").catch( (error: unknown) => { atsJobsDelete$module = undefined; throw error; }, )).then((module) => module.atsJobsDelete(...args).$inspect()), )) as typeof import("../funcs/atsJobsDelete.js").atsJobsDelete; export class Jobs extends ClientSDK { /** * List Jobs * * @remarks * List Jobs */ async list( request: operations.AtsJobsAllRequest, options?: RequestOptions, ): Promise> { return unwrapResultIterator(atsJobsList( this, request, options, )); } /** * Create Job * * @remarks * Create Job */ async create( request: operations.AtsJobsAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsJobsCreate( this, request, options, )); } /** * Get Job * * @remarks * Get Job */ async get( request: operations.AtsJobsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsJobsGet( this, request, options, )); } /** * Update Job * * @remarks * Update Job */ async update( request: operations.AtsJobsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsJobsUpdate( this, request, options, )); } /** * Delete Job * * @remarks * Delete Job */ async delete( request: operations.AtsJobsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(atsJobsDelete( this, request, options, )); } }