import { SingHttpPayload } from '../../../../services/http-call/models/sing-http-payload'; import { SingHttpResponse } from '../../../../services/http-call/models/sing-http-response'; export interface ServerSideNewChipConfig { /** * url for example: 'create-tag' */ subUrl: string; /** * in case server error -> toaster error will display. * default value is true. */ showToasterError?: boolean; /** * map request payload. * an option to add additional data to payload * this function called if exists */ requestPayloadMapper?(payload: SingHttpPayload): SingHttpPayload; /** * map response data. * this is the first function call (if exists) */ responseMapper?(response: SingHttpResponse): SingHttpResponse; } /** * options for creating a new chip. * How it works: * in case search result is empty, we will display an option to create a new chip * this option is hidden by default unless this object exists. */ export interface NewChipOptions { /** * a text that will display next to the search text. * for example helpText = '(Create New Tag)' * and the search value is 'Tag1' * the result >> "Tag1" (Create New Tag). * * the default helpText value is '(Create New)' */ helpText?: string; /** * server api configuration in order to create a new chip * when user clicks on the create new chip. */ serverSide: ServerSideNewChipConfig; } //# sourceMappingURL=new-chip-options.interface.d.ts.map