import { IHttpClient } from "./IHttpClient"; /** * The class representing a `job` entity describes the process of converting a file from one * format to another, to obtain geometric data, validate the file, or run a clash test. */ export declare class Job { private _data; protected httpClient: IHttpClient; /** * @param data - An object that implements job data storage. * @param httpClient - Http client. */ constructor(data: any, httpClient: IHttpClient); protected internalGet(): Promise; protected internalPut(body?: ArrayBuffer | Blob | globalThis.File | FormData | object | string | null): Promise; protected internalDelete(): Promise; /** * The ID of the assembly the job is working on (internal). * * @readonly */ get assemblyId(): string; /** * Job creator ID. Use {@link Client#getUser | Client.getUser()} to obtain detailed creator information. * * @readonly */ get authorId(): string; /** * Job creation time (UTC) in the format specified in ISO 8601. * * @readonly */ get createdAt(): string; /** * Raw job data received from the server. * * @readonly */ get data(): any; private set data(value); /** * `true` if job is `done` or `failed`. See {@link Job#status | status} for more details. * * @readonly */ get done(): boolean; /** * The ID of the file the job is working on. * * @readonly */ get fileId(): string; /** * Unique job ID. * * @readonly */ get id(): string; /** * Job last update (UTC) time in the format specified in ISO 8601. * * @readonly */ get lastUpdate(): string; /** * Job type. Can be `properties`, `geomerty`, `geomertyGltf`, `validation`, `clash`, `dwg`, * `obj`, `gltf`, `glb`, `vsf`, `pdf` or `3dpdf`. * * @readonly */ get outputFormat(): string; /** * Parameters for the job runner. * * @readonly */ get parameters(): any; /** * Job status. Can be `waiting`, `inprogress`, `done` or `failed`. * * @readonly */ get status(): string; /** * Job status description message. * * @readonly */ get statusMessage(): string; /** * Job starting time (UTC) in the format specified in ISO 8601. * * @readonly */ get startedAt(): string; /** * Refresh job data. * * @async */ checkout(): Promise; /** * Update job data on the server. Only admins can update job data. * * @async * @param data - Raw job data. */ update(data: any): Promise; /** * Remove a job from the server job list. Jobs that are in progress or have already been * completed cannot be deleted. * * @async * @returns Returns the raw data of a deleted job. */ delete(): Promise; /** * Wait for job to be done. Job is done when it changes to `done` or `failed` status. * * @async * @param params - An object containing waiting parameters. * @param params.timeout - The time, in milliseconds that the function should wait job. If * jobs is not done during this time, the `TimeoutError` exception will be thrown. * @param params.interval - The time, in milliseconds, the function should delay in between * checking job status. * @param params.signal- An AbortController * signal object instance, which can be used to abort waiting as desired. * @param params.onCheckout - Waiting progress callback. Return `true` to cancel waiting. */ waitForDone(params?: { timeout?: number; interval?: number; signal?: AbortSignal; onCheckout?: (job: Job, ready: boolean) => boolean; }): Promise; } //# sourceMappingURL=Job.d.ts.map