import type { Schema, OwnedBundle, FieldsParam, Entity, ListParams, OwnedBundleElement, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type OwnedBundleSchema = Schema; type OwnedBundleElementSchema = Schema; type OwnedBundleEntity = Entity; type OwnedBundleElementEntity = Entity; export declare class OwnedBundlesApi extends ResourceApi { /** * Get the list of all available owned bundles in the system. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of OwnedBundle 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 owned bundles. */ getOwnedBundles(params?: FieldsParam & ListParams): Promise[]>; /** * Create a new owned bundle in the system. * @param body - The details of the new owned bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of OwnedBundle 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 owned bundle. */ createOwnedBundle(body: DeepPartial, params?: FieldsParam): Promise>; /** * Get attributes of a owned 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 OwnedBundle 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 owned bundle with the specified ID. */ getOwnedBundleById(bundleId: string, params?: FieldsParam): Promise>; /** * Update a owned bundle with a specific ID. * @param bundleId - The database ID of the bundle. * @param body - The updated owned bundle data. * @param params - Optional parameters for response filtering. * @param params.fields - A list of OwnedBundle 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 owned bundle. */ updateOwnedBundle(bundleId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a owned bundle with the specific ID. * @param bundleId - The database ID of the owned bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of OwnedBundleElement 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 owned bundle is deleted. */ deleteOwnedBundle(bundleId: string, params?: FieldsParam): Promise>; /** * Get the list of all owned values in a specific owned bundle. * @param bundleId - The database ID of the owned bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of OwnedBundleElement 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 owned values in the bundle. */ getOwnedBundleValues(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add a new owned to the bundle. * @param bundleId - The database ID of the owned bundle. * @param body - The details of the new owned (required: name). * @param params - Optional parameters for response filtering. * @param params.fields - A list of OwnedBundleElement 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 owned element. */ addOwnedToBundle(bundleId: string, body: { name: string; } & DeepPartial, params?: FieldsParam): Promise>; /** * Update a specific owned value in the bundle. * @param bundleId - The database ID of the owned bundle. * @param elementId - The database ID of the owned value. * @param body - The updated owned value data. * @param params - Optional parameters for response filtering. * @param params.fields - A list of OwnedBundleElement 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 owned element. */ updateOwnedBundleValue(bundleId: string, elementId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Remove a specific owned from the bundle. * @param bundleId - The database ID of the owned bundle. * @param elementId - The database ID of the owned value. * @param params - Optional parameters for response filtering. * @param params.fields - A list of OwnedBundleElement 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 owned value is removed. */ removeOwnedFromBundle(bundleId: string, elementId: string, params?: FieldsParam): Promise>; } export {};