Make Olist sync incremental and resumable
This commit is contained in:
@@ -593,6 +593,9 @@ const Registrations = () => {
|
||||
<span>{olistStatus.runs[0].mode === 'full' ? 'Carga completa' : 'Atualização incremental'}</span>
|
||||
<span>{olistStatus.runs[0].imported} composições</span>
|
||||
<span>{olistStatus.runs[0].referenceCount} referências</span>
|
||||
{olistStatus.productCache.total > 0 && (
|
||||
<span>{olistStatus.productCache.checked.toLocaleString('pt-BR')} / {olistStatus.productCache.total.toLocaleString('pt-BR')} estruturas verificadas</span>
|
||||
)}
|
||||
{olistStatus.runs[0].failed > 0 && <span className="text-red-300">{olistStatus.runs[0].failed} falhas</span>}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -227,6 +227,12 @@ export interface OlistStatus {
|
||||
connected: boolean;
|
||||
tokenExpiresAt: string | null;
|
||||
syncInProgress: boolean;
|
||||
productCache: {
|
||||
total: number;
|
||||
checked: number;
|
||||
pending: number;
|
||||
manufactured: number;
|
||||
};
|
||||
runs: OlistSyncRun[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user