import * as IShared from '../../../shared/interface'; import { DocumentLinePendingConflict, DocumentLine } from '../../../shared/entities/stock'; export type Entity = DocumentLinePendingConflict; export declare const Route = "documentLine_pending_conflict"; export declare const UpperName = "DocumentLinePendingConflict"; export declare const LowerName: string; export declare const IConflictEnum: { update: 'update'; delete: 'delete'; price: 'price'; }; export type IConflict = (typeof IConflictEnum)[keyof typeof IConflictEnum]; export interface IFindByGooglesheetIdResponse { document_header_id: string; } export type IConflictCreateRequest = Omit; export interface IConflictFindByOwnerIdResponse extends Entity { document_line: Pick & { designation: string; reference: string; }; } export interface ICreateSheetFromDocumentResponse { google_sheet_id: string; } export interface ICloneSheetToNewDocumentResponse { id: string; document_number: number; } export interface IIsProcessingResponse { is_processing: boolean; last_error: string | null; } export interface ICloneSheetToNewDocumentRequest { id: string; } export interface IImportFromSheetRequest { id: string; original_document_header_id?: string; } export interface IRmHeaderField { group: string; field: string; label: string; type?: string; options?: string[]; } export type IData = Record; export interface IDataBySheetId { group: string; field_name: string; value: string | number | boolean | null; } export interface IRmGetDataBySheetIdResponse { headers: IRmHeaderField[]; data: IData[]; } export interface IRmUpdateDataBySheetIdRequest { data: IData[]; } export interface IFindRmOpenDocuments { created_at: string; created_by: string; document_header_id: string; document_number: string; identifier: string; adjudicated: boolean; who_handles: string | null; document_lines: { document_line_id: string; product_id: string; product_reference: string; designation: string; }[]; } export interface IRepository { importFromSheet(params: IImportFromSheetRequest): Promise; isProcessing(params: IShared.IFindByIdRequest): Promise; conflictAccept(params: IShared.IFindByIdRequest): Promise; conflictDelete(params: IShared.IFindByIdRequest): Promise; conflictFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise; createSheetFromDocument(params: IShared.IFindByIdRequest): Promise; cloneSheetToNewDocument(params: ICloneSheetToNewDocumentRequest): Promise; rmGetDataBySheetId(params: IShared.IFindByIdRequest): Promise; rmUpdateDataBySheetId(params: IShared.IFindByIdRequest, body: IRmUpdateDataBySheetIdRequest): Promise; findRmOpenDocuments(): Promise; } export type IController = IShared.IEntityWithUserToken;