import type { Schema, VersionBundle, FieldsParam, Entity, ListParams, VersionBundleElement, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type VersionBundleSchema = Schema; type VersionBundleElementSchema = Schema; type VersionBundleEntity = Entity; type VersionBundleElementEntity = Entity; export declare class VersionBundlesApi extends ResourceApi { /** * Get the list of all available version bundles in the system. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of VersionBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of version bundles. */ getVersionBundles(params?: FieldsParam & ListParams): Promise[]>; /** * Create a new version bundle in the system. * @param body - The details of the new version bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of VersionBundle 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 version bundle. */ createVersionBundle(body: DeepPartial, params?: FieldsParam): Promise>; /** * Get attributes of a version bundle with a specific ID. * @param bundleId - The database ID of the bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of VersionBundle 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 version bundle with the specified ID. */ getVersionBundleById(bundleId: string, params?: FieldsParam): Promise>; /** * Update a version bundle with a specific ID. * @param bundleId - The database ID of the bundle. * @param body - The updated version bundle data. * @param params - Optional parameters for response filtering. * @param params.fields - A list of VersionBundle 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 version bundle. */ updateVersionBundle(bundleId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a version bundle with the specific ID. * @param bundleId - The database ID of the version bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of VersionBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves when the version bundle is deleted. */ deleteVersionBundle(bundleId: string, params?: FieldsParam): Promise>; /** * Get the list of all version values in a specific version bundle. * @param bundleId - The database ID of the version bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of VersionBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of version values in the bundle. */ getVersionBundleValues(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add a new version to the bundle. * @param bundleId - The database ID of the version bundle. * @param body - The details of the new version (required: name). * @param params - Optional parameters for response filtering. * @param params.fields - A list of VersionBundleElement 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 added version element. */ addVersionToBundle(bundleId: string, body: { name: string; } & DeepPartial, params?: FieldsParam): Promise>; /** * Update a specific version value in the bundle. * @param bundleId - The database ID of the version bundle. * @param elementId - The database ID of the version value. * @param body - The updated version value data. * @param params - Optional parameters for response filtering. * @param params.fields - A list of VersionBundleElement 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 version element. */ updateVersionBundleValue(bundleId: string, elementId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Remove a specific version from the bundle. * @param bundleId - The database ID of the version bundle. * @param elementId - The database ID of the version value. * @param params - Optional parameters for response filtering. * @param params.fields - A list of VersionBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves when the version value is removed. */ removeVersionFromBundle(bundleId: string, elementId: string, params?: FieldsParam): Promise>; } export {};