Add native Olist composition sync
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m24s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m24s
This commit is contained in:
26
src/types.ts
26
src/types.ts
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user