import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/associations'; /** * Associations Service * Documentation for Associations API */ export declare class Associations { private client; constructor(httpClient: AxiosInstance); /** * Create Relation for you associated entities. * Create Relation.Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-293776/cd0f4122abc04d3 */ createRelation(requestBody: Models.createRelationReqDto, options?: AxiosRequestConfig): Promise; /** * Get all relations By record Id * Get all relations by record Id */ getRelationsByRecordId(params: { recordId: string; locationId: string; skip: number; limit: number; associationIds?: string[]; }, options?: AxiosRequestConfig): Promise; /** * Delete Relation * Delete Relation */ deleteRelation(params: { relationId: string; locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Get association key by key name * Using this api you can get standard / user defined association by key */ getAssociationKeyByKeyName(params: { keyName: string; locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Get association by object keys * Get association by object keys like contacts, custom objects and opportunities. Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-293776/cd0f4122abc04d3 */ getAssociationByObjectKeys(params: { objectKey?: string; locationId?: string; }, options?: AxiosRequestConfig): Promise; /** * Update Association By Id * Update Association , Allows you to update labels of an associations. Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-293776/cd0f4122abc04d3 */ updateAssociation(params: { associationId: string; }, requestBody: Models.UpdateAssociationReqDto, options?: AxiosRequestConfig): Promise; /** * Delete Association * Delete USER_DEFINED Association By Id, deleting an association will also all the relations for that association */ deleteAssociation(params: { associationId: string; }, options?: AxiosRequestConfig): Promise; /** * Get association by ID * Using this api you can get SYSTEM_DEFINED / USER_DEFINED association by id */ getAssociationByID(params: { associationId: string; }, options?: AxiosRequestConfig): Promise; /** * Create Association * Allow you to create contact - contact , contact - custom objects associations, will add more in the future.Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-293776/cd0f4122abc04d3 */ createAssociation(requestBody: Models.createAssociationReqDto, options?: AxiosRequestConfig): Promise; /** * Get all associations for a sub-account / location * Get all Associations */ findAssociations(params: { locationId: string; skip: number; limit: number; }, options?: AxiosRequestConfig): Promise; } export default Associations; //# sourceMappingURL=associations.d.ts.map