import type { GetAppDefinitionParams } from '../../common-types'; import type { AppDetailsProps, CreateAppDetailsProps } from '../../entities/app-details'; import type { OptionalDefaults } from '../wrappers/wrap'; export type AppDetailsPlainClientAPI = { /** * Creates or updates an App Detail * @param params entity IDs to identify the App Definition or App Details * @param payload the App Detail upsert * @returns the updated App Detail and its metadata * @throws if the request fails, an entity is not found, or the payload is malformed * @example * ```javascript * const appDetails = await client.appDetails.upsert( * { * spaceId: '', * environmentId: '', * appDefinitionId: '', * }, * { * icon: { * type: 'base64', * value: 'base-64-value' * } * } * ); * ``` */ upsert(params: OptionalDefaults, payload: CreateAppDetailsProps): Promise; /** * Fetches the App Detail * @param params entity IDs to identify the App Detail * @returns the App Detail * @throws if the request fails, or the App Detail is not found * @example * ```javascript * const appDetails = await client.appDetails.get({ * organizationId: '', * appDefinitionId: '', * }); * ``` */ get(params: OptionalDefaults): Promise; /** * Fetches the App Detail * @param params entity IDs to identify the App Detail * @throws if the request fails, or the App Detail is not found * @example * ```javascript * await client.appDetails.delete({ * organizationId: '', * appDefinitionId: '', * }); * ``` */ delete(params: OptionalDefaults): Promise; };