Add native Olist composition sync
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m24s

This commit is contained in:
Cauê Faleiros
2026-08-10 11:26:38 -03:00
parent e85dbe6f10
commit 1a430d4fb0
12 changed files with 669 additions and 5 deletions

View File

@@ -204,6 +204,32 @@ export type CatalogCategoryPayload = {
description?: string;
};
export interface OlistSyncRun {
id: number;
trigger: 'manual' | 'scheduled';
mode: 'full' | 'incremental';
status: 'running' | 'completed' | 'failed';
startedAt: string;
completedAt: string | null;
productsScanned: number;
manufacturedProducts: number;
imported: number;
componentCount: number;
referenceCount: number;
skippedReferenceCount: number;
failed: number;
errorMessage: string;
details: Array<{ productId?: number; sku?: string; error?: string }>;
}
export interface OlistStatus {
configured: boolean;
connected: boolean;
tokenExpiresAt: string | null;
syncInProgress: boolean;
runs: OlistSyncRun[];
}
export type CatalogProductPayload = {
type: CatalogProductType;
sku: string;