import { IEntity } from "../../types/IEntity"; import { EntityCollection } from "../../types/EntityCollection"; import { Guid } from "../../types/Guid"; import { EntityReference } from "../../types/EntityReference"; import { WebApiExecuteRequest } from "../../types/WebApiExecuteRequest"; export interface CdsServiceClient { create(entity: IEntity): Promise; update(entity: IEntity): Promise; delete(entity: IEntity): Promise; delete(entityName: string, id: Guid): Promise; retrieve(entityName: string, id: Guid, columnSet: string[] | boolean): Promise; retrieveMultiple(fetchxml: string): Promise>; associate( entityName: string, entityId: string, relationship: string, relatedEntities: Promise, ): Promise; disassociate( entityName: string, entityId: string, relationship: string, relatedEntities: EntityReference[], ): Promise; execute(request: WebApiExecuteRequest): Promise; }