import type { Stream } from 'stream'; import type { GetAppUploadParams, GetOrganizationParams } from '../../common-types'; import type { AppUploadProps } from '../../entities/app-upload'; import type { OptionalDefaults } from '../wrappers/wrap'; export type AppUploadPlainClientAPI = { /** * Fetches the App Upload * @param params entity IDs to identify the App Upload * @returns the App Upload * @throws if the request fails, or the App Upload is not found * @example * ```javascript * const appUpload = await client.appUpload.get({ * organizationId: '', * appUploadId: '', * }); * ``` */ get(params: OptionalDefaults): Promise; /** * Deletes the App Upload * @param params entity IDs to identify the App Upload * @throws if the request fails, or the App Upload is not found * @example * ```javascript * await client.appUpload.delete({ * organizationId: '', * appUploadId: '', * }); * ``` */ delete(params: OptionalDefaults): Promise; /** * Creates an App Upload * @param params entity IDs to identify the Organization to upload the App to * @param payload the App Upload * @returns the App Upload * @throws if the request fails, or the Organization is not found * @example * ```javascript * const file = fs.readFileSync(''); * const appUpload = await client.appUpload.create( * { * organizationId: '', * }, * { * file: new ArrayBuffer(file.length), * } * ); * ``` */ create(params: OptionalDefaults, payload: { file: string | ArrayBuffer | Stream; }): Promise; };