import type { Schema, FieldsParam, Entity, ListParams, EnumBundle, EnumBundleElement, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type EnumBundleSchema = Schema; type EnumBundleElementSchema = Schema; type EnumBundleEntity = Entity; type EnumBundleElementEntity = Entity; export declare class EnumBundlesApi extends ResourceApi { /** * Get a list of all available sets of values of the enum type. * @param params - Optional fields for response filtering. * @param params.fields - A list of 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 an array of EnumBundle entities. */ getEnumBundles(params?: FieldsParam & ListParams): Promise[]>; /** * Create a new set of values of the enum type. * @param body - Required fields for the new enum bundle. * @param params - Optional fields for response filtering. * @param params.fields - A list of 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 EnumBundle entity. */ createEnumBundle(body: { name: string; } | DeepPartial, params?: FieldsParam): Promise>; /** * Get a specific set of values of the enum type. * @param bundleId - The database Id of the enum bundle. * @param params - Optional fields for response filtering. * @param params.fields - A list of 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 EnumBundle entity. */ getEnumBundle(bundleId: string, params?: FieldsParam): Promise>; /** * Update a specific set of values of the enum type. * @param bundleID - The database ID of the enum bundle. * @param body - The updated values for the enum bundle. * @param params - Optional fields for response filtering. * @param params.fields - A list of 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 EnumBundle entity. */ updateEnumBundle(bundleID: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a specific set of values of the enum type. * @param bundleId - The database ID of the enum bundle to delete. * @param params - Optional fields for response filtering. * @param params.fields - A list of 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 EnumBundle entity. */ deleteEnumBundle(bundleId: string, params?: FieldsParam): Promise>; /** * Get the list of all enumerated values in the specific bundle. * @param bundleId - The database ID of the enum bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of 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 a list of EnumBundleElement entities. */ getEnumBundleValues(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add a new enumerated value to the bundle. * @param bundleId - The database ID of the enum bundle. * @param body - The enumerated value to add, must include a name. * @param params - Optional parameters for response filtering. * @param params.fields - A list of 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 newly created EnumBundleElement entity. */ addEnumBundleValue(bundleId: string, body: { name: string; } & DeepPartial, params?: FieldsParam): Promise>; /** * Get a specific enumerated value from the bundle. * @param bundleId - The database ID of the enum bundle. * @param elementId - The database ID of the enumerated value. * @param params - Optional parameters for response filtering. * @param params.fields - A list of 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 EnumBundleElement entity. */ getEnumBundleValueById(bundleId: string, elementId: string, params?: FieldsParam): Promise>; /** * Update a specific enumerated value in the bundle. * @param bundleId - The database ID of the enum bundle. * @param elementId - The database ID of the enumerated value. * @param body - The updated values for the enumerated value. * @param params - Optional parameters for response filtering. * @param params.fields - A list of 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 EnumBundleElement entity. */ updateEnumBundleValue(bundleId: string, elementId: string, body: { name: string; } & DeepPartial, params?: FieldsParam): Promise>; /** * Remove a specific enumerated value from the bundle. * @param bundleId - The database ID of the enum bundle. * @param elementId - The database ID of the enumerated value. * @param params - Optional parameters for response filtering. * @param params.fields - A list of 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 removed EnumBundleElement entity. */ deleteEnumBundleValue(bundleId: string, elementId: string, params?: FieldsParam): Promise>; } export {};