import { ApiResponse, CustomerDomainArticle, CustomerDomainCustomer, Guid } from ".."; import { BlobImage, FreeField, FreeFieldGroup } from "../types"; export interface ICustomerApiService { GetFreeFieldDefinitionsAsync(): Promise>; GetGroupedFreeFieldDefinitionsAsync(): Promise>; GetCustomerAsync(publicId: string): Promise>; CheckForFreeFieldValuesAsync(name: string): Promise>; CreateCustomerAsync(customer: CustomerDomainCustomer): Promise>; CreateCustomerPictureAsync(blobImage: BlobImage) : Promise>; CreateFreeFieldsAsync(freeFields: FreeField[]): Promise>; MultiEditAsync(publicIds: string[], header: string, value: string): Promise>; UpdateCustomerAsync(customer: CustomerDomainCustomer): Promise>; UpdateFavoriteAsync(customerId: string, articleId: string): Promise>; UpdateFreeFieldAsync(freeField: FreeField, oldName: string): Promise>; UpdateFreeFieldGroupNameAsync(oldName: string, newName: string): Promise>; DeleteCustomerPictureAsync(urlString: string): Promise>; DeleteFreeFieldAsync(name: string): Promise>; /** * Get articles that are available for a customer to add. * @param customerId customer id * @param search search query */ GetAvailableArticlesAsync(customerId: Guid, search: string): Promise>; }