diff --git a/src/scripts/sync-product-structures-v3.ts b/src/scripts/sync-product-structures-v3.ts index e779d8e..7214993 100644 --- a/src/scripts/sync-product-structures-v3.ts +++ b/src/scripts/sync-product-structures-v3.ts @@ -37,13 +37,7 @@ type StructurePayload = { totalQuantity: string; unit: string; }>; - steps: Array<{ - stepNumber: number; - name: string; - startDate: null; - endDate: null; - status: string; - }>; + steps: never[]; }; type SyncState = { status?: 'running' | 'stopped' | 'completed'; @@ -270,13 +264,7 @@ async function buildPayload(productId: string): Promise notes: `Composição sincronizada da API pública Olist V3 para produto ${product.id}.` }, components: components.filter(component => component.componentSku || component.componentName), - steps: (manufactured?.etapas || []).map((name, index) => ({ - stepNumber: index + 1, - name: text(name), - startDate: null, - endDate: null, - status: 'pendente' - })).filter(step => step.name) + steps: [] }; }