import type { CollectionProp, GetAppBundleParams, GetAppDefinitionParams, QueryParams } from '../../common-types'; import type { AppBundleProps, CreateAppBundleProps } from '../../entities/app-bundle'; import type { OptionalDefaults } from '../wrappers/wrap'; export type AppBundlePlainClientAPI = { /** * Fetches the App Bundle * @param params entity IDs to identify the App Bundle * @returns the App Bundle * @throws if the request fails, or the App Bundle is not found * @example * ```javascript * const appBundle = await client.appBundle.get({ * appDefinitionId: '', * appBundleId: '', * }); * ``` */ get(params: OptionalDefaults): Promise; /** * Fetches all App Bundles for the given App * @param params entity IDs to identify the App * @returns an object containing an array of App Bundles * @throws if the request fails, or the App is not found * @example * ```javascript * const results = await client.appBundle.getMany({ * organizationId: '', * appDefinitionId: '', * }); * ``` */ getMany(params: OptionalDefaults): Promise>; /** * Deletes the App Bundle * @param params entity IDs to identify the App Bundle * @throws if the request fails, or the App Bundle is not found * @example * ```javascript * await client.appBundle.delete({ * appDefinitionId: '', * appBundleId: '', * }); * ``` */ delete(params: OptionalDefaults): Promise; /** * Creates an App Bundle * @param params entity IDs to scope where to create the App Bundle * @param payload the App Bundle details * @returns the created App Bundle and its metadata * @throws if the request fails, the associated App is not found, or the payload is malformed * @example * ```javascript * const appBundle = await client.appBundle.create( * { * appDefinitionId: '', * appBundleId: '', * }, * { * appUploadId: '', * comment: 'a bundle comment', * } * ); * ``` */ create(params: OptionalDefaults, payload: CreateAppBundleProps): Promise; };