import type { Schema, BuildBundle, FieldsParam, Entity, ListParams, BuildBundleElement, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type BuildBundleSchema = Schema; type BuildBundleElementSchema = Schema; type BuildBundleEntity = Entity; type BuildBundleElementEntity = Entity; export declare class BuildBundlesApi extends ResourceApi { /** * Get all available sets of builds in the system. * @param params - Optional parameters. * @param params.fields - A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.$skip - Optional. The number of returned entities to skip before returning the first one. * @param params.$top - Optional. The maximum number of entries that are returned in the response. * @returns A promise that resolves to the list of BuildBundle entities. */ getBuildBundles(params?: FieldsParam & ListParams): Promise[]>; /** * Create a new set of builds. * Requires permissions: Update Project or Low-level Admin Write. * @param body - The details of the new BuildBundle to create. * @param params - Optional parameters. * @param params.fields - A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the created BuildBundle entity. */ createBuildBundle(body: DeepPartial, params?: FieldsParam): Promise>; /** * Read a set of builds with the specific ID. * Requires read or update access to one of the fields where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project. * @param bundleId - The database ID of the build bundle. * @param params - Optional parameters. * @param params.fields - A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the requested BuildBundle entity. */ getBuildBundleById(bundleId: string, params?: FieldsParam): Promise>; /** * Update the specific set of builds. * Requires Update Project permission in all projects where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project. * @param bundleId - The database ID of the build bundle. * @param body - The udpdated build bundle. * @param fields - Optional. A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the updated BuildBundle entity. */ updateBuildBundle(bundleId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a specific set of builds. * Requires Update Project permission in all projects where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project. * @param bundleId - The database ID of the build bundle to delete. * @param fields - Optional. A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns A promise that resolves to the deleted BuildBundle entity. */ deleteBuildBundle(bundleId: string, params?: FieldsParam): Promise>; /** * Get the list of all build values in the specific build bundle. * @param bundleId - The database ID of the build bundle. * @param params - Optional parameters for fields, $skip, and $top. * @returns A promise that resolves to a list of BuildBundleElement entities. */ getBuildBundleValues(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add a new build to the specific build bundle. * @param bundleId - The database ID of the build bundle. * @param body - The build details, including the required name. * @param params - Optional fields to include in the response. * @returns A promise that resolves to the newly added BuildBundleElement entity. */ addBuildToBundle(bundleId: string, body: { name: string; } & DeepPartial, params?: FieldsParam): Promise>; /** * Get a specific build from the build bundle. * @param bundleId - The database ID of the build bundle. * @param elementId - The database ID of the build value. * @param params - Optional fields to include in the response. * @returns A promise that resolves to the specified BuildBundleElement entity. */ getBuildFromBundle(bundleId: string, elementId: string, params?: FieldsParam): Promise>; /** * Update a specific build in the bundle. * @param bundleId - The database ID of the build bundle. * @param elementId - The database ID of the build value. * @param body - The updated build details. * @param params - Optional fields to include in the response. * @returns A promise that resolves to the updated BuildBundleElement entity. */ updateBuildInBundle(bundleId: string, elementId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Remove a specific build from the bundle. * @param bundleId - The database ID of the build bundle. * @param elementId - The database ID of the build value to remove. * @param params - Optional fields to include in the response. * @returns A promise that resolves to the removed BuildBundleElement entity. */ removeBuildFromBundle(bundleId: string, elementId: string, params?: FieldsParam): Promise>; } export {};