import type { Schema, FieldsParam, Entity, GlobalTimeTrackingSettings, ListParams, WorkItemType, WorkTimeSettings, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type TimeTrackingSettingsSchema = Schema; type WorkItemTypeSchema = Schema; type WorkTimeSettingsSchema = Schema; type TimeTrackingSettingsEntity = Entity; type WorkItemTypeEntity = Entity; type WorkTimeSettingsEntity = Entity; export declare class GlobalTimeTrackingSettingsApi extends ResourceApi { /** * Read the global time tracking settings of the service. * @param params - Optional parameters for response filtering. * @param params.fields - A list of GlobalTimeTrackingSettings 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 global time tracking settings of the service. */ getGlobalTimeTrackingSettings(params?: FieldsParam): Promise>; /** * Read the list of currently available work item types. * @param params - Optional parameters for response filtering. * @param params.fields - A list of WorkItemType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @param params.$skip - Optional. Number of returned entities to skip before returning the first one. * @param params.$top - Optional. Maximum number of entries that are returned in the response. * @returns The list of work item types. */ getWorkItemTypes(params?: FieldsParam & ListParams): Promise>>; /** * Create a new work item type. * @param body - Required fields: name. * @param params - Optional parameters for response filtering. * @param params.fields - A list of WorkItemType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The created work item type. * @requires permissions Low-level Admin Write or Update Project. */ createWorkItemType(body: { name: string; } | DeepPartial, params?: FieldsParam): Promise>; /** * Read a work item type with a specific ID. * @param typeId - Database ID of the work item type. * @param params - Optional parameters for response filtering. * @param params.fields - A list of WorkItemType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The requested work item type. * @requires permissions Read Work Item. */ getWorkItemTypeById(typeId: string, params?: FieldsParam): Promise>; /** * Update a work item type with a specific ID. * @param typeId - Database ID of the work item type. * @param body - The properties to update in the work item type as JSON. * @param params - Optional parameters for response filtering. * @param params.fields - A list of WorkItemType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The updated work item type. * @requires permissions Low-level Admin Write. */ updateWorkItemType(typeId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a work item type with a specific ID. * @param typeId - Database ID of the work item type. * @param params - Optional parameters for response filtering. * @param params.fields - A list of WorkItemType attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The result of the deletion. * @requires permissions Low-level Admin Write. */ deleteWorkItemType(typeId: string, params?: FieldsParam): Promise>; /** * Read the system work time settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of WorkTimeSettings attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The current work time settings. * @requires permissions Read Work Item. */ getWorkTimeSettings(params?: FieldsParam): Promise>; /** * Update the work time settings. * @param body - Properties to update in the work time settings. * @param params - Optional parameters for response filtering. * @param params.fields - A list of WorkTimeSettings attributes that should be returned in the response. If no field is specified, only the entityId is returned. * @returns The updated work time settings. * @requires permissions Low-level Admin Write. */ updateWorkTimeSettings(body: DeepPartial, params?: FieldsParam): Promise>; } export {};