ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  id: string;
                  warehouseId: string;
                  productId: string;
                  product: | { category: {}
                  | null; unitOfStock: {} | null } & {}
                  | { category: {} | null; unitOfMeasure: {} | null } & {}
                  | null;
                  warehouse: {};
                  productType: string;
                  currentStock: number;
                  stats: {
                      currentStock: number;
                      minStockLevel: any;
                      maxStockLevel: any;
                      reorderPoint: any;
                      totalMovements: number;
                      lastMovementDate: Date;
                      averageDailyConsumption: number;
                      daysOfStock: number;
                  };
                  alerts: string[];
                  stockStatus: string;
                  movements: (
                      {
                          approver: { email: string; id: string; name: string | null }
                          | null;
                          finishedProduct:
                              | { category: (...)
                              | (...); unitOfMeasure: (...) | (...) } & {}
                              | null;
                          location: {} | null;
                          operator: { email: string; id: string; name: string | null } | null;
                          rawMaterial:
                              | { category: (...)
                              | (...); unitOfStock: (...) | (...) } & {}
                              | null;
                          warehouse: {};
                      } & {}
                  )[];
              },
          >,
      >